CCSoundHandle
CCSoundHandle
CocosDenshionA handle to an individual sound effect instance, providing per-instance control over volume, pan, pitch, and playback state. Obtained from CCSimpleAudioEngine.PlayEffectHandled(). The caller owns this handle and must call Dispose() when finished to release the underlying SoundEffectInstance.
Inheritance: System.Object
Implements: System.IDisposable
Properties
Whether this handle has been disposed or its instance is no longer valid.
Gets or sets whether this sound instance loops.
Whether this handle's sound instance is paused.
Whether this handle's sound instance is currently playing.
Gets or sets the pan for this sound instance (-1.0 left to 1.0 right).
Gets or sets the pitch adjustment for this sound instance (-1.0 to 1.0).
The sound ID (hash of the file path) for this effect.
Gets or sets the volume for this sound instance (0.0 to 1.0).
Methods
Dispose()
Dispose()()Disposes the underlying SoundEffectInstance, freeing resources.
Example
Pause()
Pause()()Pauses playback of this sound instance.
Example
Resume()
Resume()()Resumes playback of this paused sound instance.
Example
Stop()
Stop()()Stops playback of this sound instance.
Example