Logo
クラス | 公開型 | 静的公開メンバ関数 | 全メンバ一覧
Yukar.Engine.Audio クラス

BGM/SE/MEなどオーディオ全般を再生管理するクラス [詳解]

クラス

class  SoundDef
 読み込んだサウンドのインスタンス [詳解]
 

公開型

enum  SoundType { Map = 0 , Normal , Arnis }
 再生種別 / Map, Normal は通常ステレオ、Arnis は 3Dサウンド [詳解]
 

静的公開メンバ関数

static void PlayDummy ()
 
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 SetBgmVolume (float volume)
 
static void changeVolume ()
 
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 SoundDef GetNowBgm (bool doClear=true)
 
static void SwapBgm (SoundDef sound)
 
static bool IsBgmPlaying ()
 
static SoundDef GetNowBgs ()
 
static Common.Resource.ResourceItem GetNowBgsRom ()
 
static void setMasterVolume (float bgm, float se)
 
static bool IsSePlaying (int seId)
 
static bool IsSePlaying (Common.Resource.SoundResource sound)
 
static int GetSeId (Common.Resource.SoundResource sound, bool reverseOrder=false)
 
static Sound CacheSound (SoundResource bgm)
 
static void UncacheSound (Sound pre)
 
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などオーディオ全般を再生管理するクラス

列挙型メンバ詳解

◆ SoundType

再生種別 / Map, Normal は通常ステレオ、Arnis は 3Dサウンド

列挙値
Map 
Normal 
Arnis 

メソッド詳解

◆ CacheSound()

static Sound Yukar.Engine.Audio.CacheSound ( SoundResource  bgm)
static

◆ changeVolume()

static void Yukar.Engine.Audio.changeVolume ( )
static

◆ Destroy()

static void Yukar.Engine.Audio.Destroy ( )
static

◆ GetLoopPoint()

static bool Yukar.Engine.Audio.GetLoopPoint ( string  path,
out int  loopStart,
out int  loopEnd 
)
static

◆ GetNowBgm()

static SoundDef Yukar.Engine.Audio.GetNowBgm ( bool  doClear = true)
static

◆ GetNowBgs()

static SoundDef Yukar.Engine.Audio.GetNowBgs ( )
static

◆ GetNowBgsRom()

static Common.Resource.ResourceItem Yukar.Engine.Audio.GetNowBgsRom ( )
static

◆ GetSeId()

static int Yukar.Engine.Audio.GetSeId ( Common.Resource.SoundResource  sound,
bool  reverseOrder = false 
)
static

◆ GetSoundType()

static string Yukar.Engine.Audio.GetSoundType ( SoundType  soundType)
static

◆ Initialize()

static void Yukar.Engine.Audio.Initialize ( )
static

◆ InitializeSETypeCount()

static void Yukar.Engine.Audio.InitializeSETypeCount ( int  inNormalSECount,
int  inArnisSECount 
)
static

◆ IsBgmPlaying()

static bool Yukar.Engine.Audio.IsBgmPlaying ( )
static

◆ IsSePlaying() [1/2]

static bool Yukar.Engine.Audio.IsSePlaying ( Common.Resource.SoundResource  sound)
static

◆ IsSePlaying() [2/2]

static bool Yukar.Engine.Audio.IsSePlaying ( int  seId)
static

◆ LoadSound()

static int Yukar.Engine.Audio.LoadSound ( Common.Resource.SoundResource  rom,
bool  getUniqueId = false 
)
static

サウンドを読み込む

引数
rom
getUniqueIdfalse の場合、既に読み込み済みの場合は ID を返却するだけ
戻り値

◆ PauseSound()

static void Yukar.Engine.Audio.PauseSound ( int  id)
static

サウンドのポーズ

引数
idサウンドのID

◆ PlayBgm()

static void Yukar.Engine.Audio.PlayBgm ( Common.Resource.SoundResource  rom,
float  volume = 1.0f,
float  tempo = 1.0f 
)
static

◆ PlayBgs()

static void Yukar.Engine.Audio.PlayBgs ( Common.Resource.SoundResource  rom,
float  volume = 1.0f,
float  tempo = 1.0f 
)
static

◆ PlayDummy()

static void Yukar.Engine.Audio.PlayDummy ( )
static

◆ PlaySound()

static void Yukar.Engine.Audio.PlaySound ( int  id,
float  pan = 0f,
float  volume = 1.0f,
float  tempo = 1.0f,
Audio.SoundType  soundType = Audio.SoundType.Normal 
)
static

◆ ResumeSound()

static void Yukar.Engine.Audio.ResumeSound ( int  id)
static

ポーズしたサウンドの再開

引数
idサウンドのID

◆ SetBgmVolume()

static void Yukar.Engine.Audio.SetBgmVolume ( float  volume)
static

◆ SetDistanceScaleMaxDistance()

static void Yukar.Engine.Audio.SetDistanceScaleMaxDistance ( float  v)
static

◆ SetListenerMatrix()

static void Yukar.Engine.Audio.SetListenerMatrix ( SharpKmyMath.Matrix4  mtx)
static

◆ setMasterVolume()

static void Yukar.Engine.Audio.setMasterVolume ( float  bgm,
float  se 
)
static

◆ SetSePosition()

static void Yukar.Engine.Audio.SetSePosition ( int  id,
float  x,
float  y,
float  z 
)
static

効果音の再生位置設定(再生開始時はPlaySoundの前に位置を設定しておく必要があります)

引数
id効果音ID
xX座標
yY座標
zZ座標

◆ SetSEVolume()

static void Yukar.Engine.Audio.SetSEVolume ( int  id,
float  volume = 1 
)
static

効果音のボリューム設定

引数
id効果音ID
volumeボリューム

◆ StopAllSound()

static void Yukar.Engine.Audio.StopAllSound ( )
static

◆ StopBgm()

static void Yukar.Engine.Audio.StopBgm ( )
static

◆ StopBgs()

static void Yukar.Engine.Audio.StopBgs ( )
static

◆ StopSound()

static void Yukar.Engine.Audio.StopSound ( int  loadedSeId)
static

◆ SwapBgm()

static void Yukar.Engine.Audio.SwapBgm ( SoundDef  sound)
static

◆ UncacheSound()

static void Yukar.Engine.Audio.UncacheSound ( Sound  pre)
static

◆ UnloadAllSound()

static void Yukar.Engine.Audio.UnloadAllSound ( )
static

◆ UnloadSound() [1/2]

static void Yukar.Engine.Audio.UnloadSound ( Common.Resource.SoundResource  rom)
static

◆ UnloadSound() [2/2]

static void Yukar.Engine.Audio.UnloadSound ( int  id)
static