効果音の再生
More...
#include <Sound_effect.h>
Enumerator |
---|
All_id |
再生中の効果音を指定するときの ID
|
Invalid_id |
無効な ID
|
const char * Sound_effect::what |
( |
void |
| ) |
const |
bool Sound_effect::register_alias |
( |
const std::string & |
alias, |
|
|
const std::string & |
file_name |
|
) |
| |
void Sound_effect::unregister_alias |
( |
const std::string & |
alias | ) |
|
int Sound_effect::play |
( |
const std::string & |
alias, |
|
|
double |
fade_in_sec = 0.0 |
|
) |
| |
効果音を再生する
- Parameters
-
[in] | alias | 登録名 |
[in] | fade_in_sec | フェードインの時間 [秒] |
- Returns
- 再生 ID
- Return values
-
- Examples:
- play_sound_effect.cpp.
bool Sound_effect::is_playing |
( |
int |
effect_id | ) |
|
void Sound_effect::pause |
( |
int |
effect_id | ) |
|
void Sound_effect::resume |
( |
int |
effect_id | ) |
|
void Sound_effect::stop |
( |
int |
effect_id, |
|
|
double |
fade_out_sec = 0.0 |
|
) |
| |
効果音の再生を停止する
- Parameters
-
[in] | play_id | 再生 ID |
[in] | fade_out_sec | フェードアウト時間 [秒] |
The documentation for this class was generated from the following files: