Skip to main content

CCSimpleAudioEngine

CCSimpleAudioEngine

CocosDenshion

Inheritance: System.Object

Constructors

CCSimpleAudioEngine()

CCSimpleAudioEngine()()

Properties

BackgroundMusicVolume(System.Single)
EffectsVolume(System.Single)
IsFading(System.Boolean)
SharedEngine(CocosDenshion.CCSimpleAudioEngine)
SharedList(System.Collections.Generic.DictionarySystem.Int32,CocosDenshion.CCEffectPlayer)

Methods

End()

End()()

FadeBackgroundMusic(float, float)

FadeBackgroundMusic(float, float)(System.Single targetVolume, System.Single duration)
Parameters:
targetVolume (System.Single)
duration (System.Single)

FullPath(string)

System.String FullPath(string)(System.String szPath)
Parameters:
szPath (System.String)
Returns:
System.String

IsBackgroundMusicPlaying()

System.Boolean IsBackgroundMusicPlaying()()
Returns:
System.Boolean

PauseAllEffects()

PauseAllEffects()()

PauseBackgroundMusic()

PauseBackgroundMusic()()

PauseEffect(int)

PauseEffect(int)(System.Int32 fxid)
Parameters:
fxid (System.Int32)

PlayBackgroundMusic(string)

PlayBackgroundMusic(string)(System.String pszFilePath)
Parameters:
pszFilePath (System.String)

PlayBackgroundMusic(string, bool)

PlayBackgroundMusic(string, bool)(System.String pszFilePath, System.Boolean bLoop)
Parameters:
pszFilePath (System.String)
bLoop (System.Boolean)

PlayEffect(int)

System.Int32 PlayEffect(int)(System.Int32 fxid)
Parameters:
fxid (System.Int32)
Returns:
System.Int32

PlayEffect(int, bool)

System.Int32 PlayEffect(int, bool)(System.Int32 fxid, System.Boolean bLoop)
Parameters:
fxid (System.Int32)
bLoop (System.Boolean)
Returns:
System.Int32

PlayEffect(string)

System.Int32 PlayEffect(string)(System.String pszFilePath)
Parameters:
pszFilePath (System.String)
Returns:
System.Int32

PlayEffect(string, bool)

System.Int32 PlayEffect(string, bool)(System.String pszFilePath, System.Boolean bLoop)
Parameters:
pszFilePath (System.String)
bLoop (System.Boolean)
Returns:
System.Int32

PlayEffect(string, float)

System.Int32 PlayEffect(string, float)(System.String pszFilePath, System.Single volume)
Parameters:
pszFilePath (System.String)
volume (System.Single)
Returns:
System.Int32

PlayEffect(string, float, float)

System.Int32 PlayEffect(string, float, float)(System.String pszFilePath, System.Single volume, System.Single minInterval)
Parameters:
pszFilePath (System.String)
volume (System.Single)
minInterval (System.Single)
Returns:
System.Int32

PlayEffectHandled(string, float, bool)

CocosDenshion.CCSoundHandle PlayEffectHandled(string, float, bool)(System.String pszFilePath, System.Single volume, System.Boolean bLoop)
Parameters:
pszFilePath (System.String)
volume (System.Single)
bLoop (System.Boolean)
Returns:
CocosDenshion.CCSoundHandle

PreloadBackgroundMusic(string)

PreloadBackgroundMusic(string)(System.String pszFilePath)
Parameters:
pszFilePath (System.String)

PreloadEffect(string)

PreloadEffect(string)(System.String pszFilePath)
Parameters:
pszFilePath (System.String)

RestoreMediaState()

RestoreMediaState()()

ResumeAllEffects()

ResumeAllEffects()()

ResumeBackgroundMusic()

ResumeBackgroundMusic()()

RewindBackgroundMusic()

RewindBackgroundMusic()()

SaveMediaState()

SaveMediaState()()

StopAllEffects()

StopAllEffects()()

StopAllLoopingEffects()

StopAllLoopingEffects()()

StopBackgroundMusic()

StopBackgroundMusic()()

StopBackgroundMusic(bool)

StopBackgroundMusic(bool)(System.Boolean bReleaseData)
Parameters:
bReleaseData (System.Boolean)

StopEffect(int)

StopEffect(int)(System.Int32 nSoundId)
Parameters:
nSoundId (System.Int32)

UnloadEffect(string)

UnloadEffect(string)(System.String pszFilePath)
Parameters:
pszFilePath (System.String)

Update(float)

Update(float)(System.Single dt)
Parameters:
dt (System.Single)

UpdateThrottleTimers(float)

UpdateThrottleTimers(float)(System.Single dt)
Parameters:
dt (System.Single)

WillPlayBackgroundMusic()

System.Boolean WillPlayBackgroundMusic()()
Returns:
System.Boolean