|
|
BGM/SE/MEなどオーディオ全般を再生管理するクラス [詳解]
公開型 |
|
| enum | SoundType { Map = 0 , Normal , Arnis } |
| 再生種別 / Map, Normal は通常ステレオ、Arnis は 3Dサウンド
|
|
静的公開メンバ関数 |
|
| static void | Initialize () |
| static void | InitializeSETypeCount (int inNormalSECount, int inArnisSECount) |
| static void | Destroy () |
| static string | GetSoundType (SoundType soundType) |
| static void | SetListenerMatrix (SharpKmyMath.Matrix4 mtx) |
| static void | SetDistanceScaleMaxDistance (float v) |
| static void | PlayBgm (Common.Resource.SoundResource rom, float volume=1.0f, float tempo=1.0f) |
| static void | PlayBgs (Common.Resource.SoundResource rom, float volume=1.0f, float tempo=1.0f) |
| static void | StopBgm () |
| static void | StopBgs () |
| static int | LoadSound (Common.Resource.SoundResource rom, bool getUniqueId=false) |
| サウンドを読み込む
[詳解]
|
|
| static void | UnloadSound (Common.Resource.SoundResource rom) |
| static void | PlaySound (int id, float pan=0f, float volume=1.0f, float tempo=1.0f, Audio.SoundType soundType=Audio.SoundType.Normal) |
| static void | PauseSound (int id) |
| サウンドのポーズ
[詳解]
|
|
| static void | ResumeSound (int id) |
| ポーズしたサウンドの再開
[詳解]
|
|
| static void | UnloadSound (int id) |
| static bool | IsBgmPlaying () |
| static void | setMasterVolume (float bgm, float se) |
| static void | UnloadAllSound () |
| static void | StopAllSound () |
| static void | StopSound (int loadedSeId) |
| static bool | GetLoopPoint (string path, out int loopStart, out int loopEnd) |
| static void | SetSePosition (int id, float x, float y, float z) |
| 効果音の再生位置設定(再生開始時はPlaySoundの前に位置を設定しておく必要があります)
[詳解]
|
|
| static void | SetSEVolume (int id, float volume=1) |
| 効果音のボリューム設定
[詳解]
|
|
BGM/SE/MEなどオーディオ全般を再生管理するクラス
|
static |
サウンドを読み込む
| rom | |
| getUniqueId | false の場合、既に読み込み済みの場合は ID を返却するだけ |
|
static |
サウンドのポーズ
| id | サウンドのID |
|
static |
ポーズしたサウンドの再開
| id | サウンドのID |
|
static |
効果音の再生位置設定(再生開始時はPlaySoundの前に位置を設定しておく必要があります)
| id | 効果音ID |
| x | X座標 |
| y | Y座標 |
| z | Z座標 |
|
static |
効果音のボリューム設定
| id | 効果音ID |
| volume | ボリューム |