public interface Audio
Modifier and Type | Field and Description |
---|---|
static int |
VOLUME_MAX
Maximum volume value.
|
static int |
VOLUME_MIN
Minimum volume value.
|
Modifier and Type | Method and Description |
---|---|
void |
play()
Play the audio.
|
void |
setVolume(int volume)
Set the midi volume.
|
void |
stop()
Stop the audio.
|
static final int VOLUME_MIN
static final int VOLUME_MAX
void play()
The audio will be played from the beginning until the end.
LionEngineException
- If unable to play sound.void setVolume(int volume)
volume
- The volume in percent [VOLUME_MIN
- VOLUME_MAX
]
.LionEngineException
- If argument is invalid or midi not available.void stop()
Copyright © 2017 Byron 3D Games Studio. All rights reserved.