CCEffectPlayer
CCEffectPlayer
CocosDenshionInheritance: System.Object
Constructors
CCEffectPlayer()
CCEffectPlayer()()Fields
s_mciError(System.UInt64)
Properties
SoundID(System.Int32)
Volume(System.Single)
Methods
Close()
Close()()~CCEffectPlayer()
~CCEffectPlayer()()IsPlaying()
System.Boolean IsPlaying()()Returns:
System.BooleanOpen(string, int)
Open(string, int)(System.String pFileName, System.Int32 uId)Parameters:
pFileName (System.String)uId (System.Int32)Pause()
Pause()()Play()
Play()()Play(bool)
Play(bool)(System.Boolean bLoop)Parameters:
bLoop (System.Boolean)Play(bool, float)
Play(bool, float)(System.Boolean bLoop, System.Single volume)Plays the sound effect with per-instance volume control.
Parameters:
bLoop (System.Boolean) - Whether to loop the sound.volume (System.Single) - Volume from 0.0 to 1.0.Example
Resume()
Resume()()Rewind()
Rewind()()Stop()
Stop()()