public class Sound extends BaseAudioEntity
mLeftVolume, mRightVolume| Modifier and Type | Method and Description |
|---|---|
protected SoundManager |
getAudioManager() |
float |
getRate() |
int |
getSoundID() |
int |
getStreamID() |
boolean |
isLoaded() |
void |
onMasterVolumeChanged(float pMasterVolume) |
void |
pause() |
void |
play() |
void |
release() |
void |
resume() |
void |
setLoaded(boolean pLoaded) |
void |
setLoopCount(int pLoopCount) |
void |
setLooping(boolean pLooping) |
void |
setRate(float pRate) |
void |
setVolume(float pLeftVolume,
float pRightVolume) |
void |
stop() |
protected void |
throwOnReleased() |
assertNotReleased, getActualLeftVolume, getActualRightVolume, getLeftVolume, getMasterVolume, getRightVolume, getVolume, isReleased, setVolumepublic int getSoundID()
public int getStreamID()
public boolean isLoaded()
public void setLoaded(boolean pLoaded)
public void setLoopCount(int pLoopCount)
throws SoundReleasedException
SoundReleasedExceptionpublic float getRate()
public void setRate(float pRate)
throws SoundReleasedException
SoundReleasedExceptionprotected SoundManager getAudioManager() throws SoundReleasedException
getAudioManager in class BaseAudioEntitySoundReleasedExceptionprotected void throwOnReleased()
throws SoundReleasedException
throwOnReleased in class BaseAudioEntitySoundReleasedExceptionpublic void play()
throws SoundReleasedException
play in interface IAudioEntityplay in class BaseAudioEntitySoundReleasedExceptionpublic void stop()
throws SoundReleasedException
stop in interface IAudioEntitystop in class BaseAudioEntitySoundReleasedExceptionpublic void resume()
throws SoundReleasedException
resume in interface IAudioEntityresume in class BaseAudioEntitySoundReleasedExceptionpublic void pause()
throws SoundReleasedException
pause in interface IAudioEntitypause in class BaseAudioEntitySoundReleasedExceptionpublic void release()
throws SoundReleasedException
release in interface IAudioEntityrelease in class BaseAudioEntitySoundReleasedExceptionpublic void setLooping(boolean pLooping)
throws SoundReleasedException
setLooping in interface IAudioEntitysetLooping in class BaseAudioEntitySoundReleasedExceptionpublic void setVolume(float pLeftVolume,
float pRightVolume)
throws SoundReleasedException
setVolume in interface IAudioEntitysetVolume in class BaseAudioEntitySoundReleasedExceptionpublic void onMasterVolumeChanged(float pMasterVolume)
throws SoundReleasedException
onMasterVolumeChanged in interface IAudioEntityonMasterVolumeChanged in class BaseAudioEntitySoundReleasedException