public abstract class BaseAudioEntity extends java.lang.Object implements IAudioEntity
| Modifier and Type | Field and Description |
|---|---|
protected float |
mLeftVolume |
protected float |
mRightVolume |
| Constructor and Description |
|---|
BaseAudioEntity(IAudioManager<? extends IAudioEntity> pAudioManager) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
assertNotReleased() |
float |
getActualLeftVolume() |
float |
getActualRightVolume() |
protected IAudioManager<? extends IAudioEntity> |
getAudioManager() |
float |
getLeftVolume() |
protected float |
getMasterVolume() |
float |
getRightVolume() |
float |
getVolume() |
boolean |
isReleased() |
void |
onMasterVolumeChanged(float pMasterVolume) |
void |
pause() |
void |
play() |
void |
release() |
void |
resume() |
void |
setLooping(boolean pLooping) |
void |
setVolume(float pVolume) |
void |
setVolume(float pLeftVolume,
float pRightVolume) |
void |
stop() |
protected abstract void |
throwOnReleased() |
public BaseAudioEntity(IAudioManager<? extends IAudioEntity> pAudioManager)
public boolean isReleased()
protected IAudioManager<? extends IAudioEntity> getAudioManager() throws AudioException
AudioExceptionpublic float getActualLeftVolume()
throws AudioException
AudioExceptionpublic float getActualRightVolume()
throws AudioException
AudioExceptionprotected float getMasterVolume()
throws AudioException
AudioExceptionprotected abstract void throwOnReleased()
throws AudioException
AudioExceptionpublic float getVolume()
throws AudioException
getVolume in interface IAudioEntityAudioExceptionpublic float getLeftVolume()
throws AudioException
getLeftVolume in interface IAudioEntityAudioExceptionpublic float getRightVolume()
throws AudioException
getRightVolume in interface IAudioEntityAudioExceptionpublic final void setVolume(float pVolume)
throws AudioException
setVolume in interface IAudioEntityAudioExceptionpublic void setVolume(float pLeftVolume,
float pRightVolume)
throws AudioException
setVolume in interface IAudioEntityAudioExceptionpublic void onMasterVolumeChanged(float pMasterVolume)
throws AudioException
onMasterVolumeChanged in interface IAudioEntityAudioExceptionpublic void play()
throws AudioException
play in interface IAudioEntityAudioExceptionpublic void pause()
throws AudioException
pause in interface IAudioEntityAudioExceptionpublic void resume()
throws AudioException
resume in interface IAudioEntityAudioExceptionpublic void stop()
throws AudioException
stop in interface IAudioEntityAudioExceptionpublic void setLooping(boolean pLooping)
throws AudioException
setLooping in interface IAudioEntityAudioExceptionpublic void release()
throws AudioException
release in interface IAudioEntityAudioExceptionprotected void assertNotReleased()
throws AudioException
AudioException