VOLUME_MAX, VOLUME_MIN
Modifier and Type | Method and Description |
---|---|
long |
getTicks()
Get the total number of ticks.
|
void |
pause()
Pause the audio (can be resumed).
|
void |
play(Align alignment,
boolean loop)
Play the audio.
|
void |
resume()
Resume the audio (if paused).
|
void |
setConfig(boolean interpolation,
boolean joinStereo)
Configure the audio output.
|
void |
setLoop(long first,
long last)
Set loop area in tick.
|
void |
setStart(long tick)
Set starting tick (starting audio position).
|
void setConfig(boolean interpolation, boolean joinStereo)
interpolation
- true
to use interpolation, false
else.joinStereo
- true
to join stereo, false
else.void play(Align alignment, boolean loop)
The audio will be played from the beginning (can be set by setStart(long)
) until the end.
In case of a loop, audio will be played in loop between the set ticks using setLoop(long, long)
.
alignment
- The sound alignment.loop
- true
to play in loop, false
else.LionEngineException
- If unable to play sound.void setStart(long tick)
tick
- The starting tick [0 - getTicks()
]
.LionEngineException
- If argument is invalid.void setLoop(long first, long last)
first
- The first tick [0 - last}]
.last
- The last tick [first - getTicks()
}]
.LionEngineException
- If arguments are invalid.long getTicks()
void pause()
void resume()
Copyright © 2017 Byron 3D Games Studio. All rights reserved.