|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectMicrosoft.Xna.Framework.Audio.SoundEffectInstance
public class SoundEffectInstance
Provides a single playing, paused, or stopped instance of a SoundEffect sound.
Field Summary | |
---|---|
boolean |
IsLooped
Gets a value that indicates whether looping is enabled for the SoundEffectInstance. |
Method Summary | |
---|---|
void |
Apply3D(AudioListener[] listeners,
AudioEmitter emitter)
Applies 3D position to the sound using multiple listeners. |
void |
Apply3D(AudioListener listener,
AudioEmitter emitter)
Applies 3D positioning to the sound using a single listener. |
void |
Dispose()
Releases unmanaged resources held by this SoundEffectInstance. |
protected void |
Dispose(boolean disposing)
Releases the unmanaged resources held by this SoundEffectInstance, and optionally releases the managed resources. |
protected void |
finalize()
Releases unmanaged resources and performs other cleanup operations before the SoundEffectInstance is reclaimed by garbage collection. |
float |
getPan()
Gets the panning for the SoundEffectInstance. |
float |
getPitch()
Gets the pitch adjustment for the SoundEffectInstance. |
SoundState |
getState()
Gets the current state (playing, paused, or stopped) of the SoundEffectInstance. |
float |
getVolume()
Gets the volume of the SoundEffectInstance. |
boolean |
IsDisposed()
Gets a value that indicates whether the object is disposed. |
void |
Pause()
Pauses a SoundEffectInstance. |
void |
Play()
Plays or resumes a SoundEffectInstance. |
void |
Resume()
Resumes playback for a SoundEffectInstance. |
void |
setPan(float value)
Sets the panning for the SoundEffectInstance. |
void |
setPitch(float value)
Sets the pitch adjustment for the SoundEffectInstance. |
void |
setVolume(float value)
Sets the volume of the SoundEffectInstance. |
void |
Stop()
Immediately stops playing a SoundEffectInstance. |
void |
Stop(boolean immediate)
Stops playing a SoundEffectInstance, either immediately or as authored. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public boolean IsLooped
Method Detail |
---|
public boolean IsDisposed()
public float getPan()
public void setPan(float value)
public float getPitch()
public void setPitch(float value)
public SoundState getState()
public float getVolume()
public void setVolume(float value)
public void Apply3D(AudioListener listener, AudioEmitter emitter)
listener
- Position of the listener.emitter
- Position of the emitter.public void Apply3D(AudioListener[] listeners, AudioEmitter emitter)
listeners
- Positions of each listener.emitter
- Position of the emitter.public void Dispose()
Dispose
in interface IDisposable
protected void Dispose(boolean disposing)
disposing
- Pass true to release both the managed and unmanaged resources for this SoundEffectInstance. Passing false releases only the unmanaged resources.protected void finalize()
finalize
in class java.lang.Object
public void Pause()
public void Play()
public void Resume()
public void Stop()
public void Stop(boolean immediate)
immediate
- Whether to stop playing immediately, or to break out of the loop region and play the release. Specify true to stop playing immediately, or false to break out of the loop region and play the release phase (the remainder of the sound).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |