public interface Wav
[VOLUME_MIN
- VOLUME_MAX
]
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 sound immediately until the end, and free resources.
|
void |
play(Align alignment,
int volume)
Play sound immediately until the end, and free resources.
|
void |
play(Align alignment,
int volume,
int delayMilli)
Play sound immediately until the end, and free resources.
|
void |
play(int delayMilli)
Play sound immediately until the end, and free resources.
|
void |
stop()
Stop sound.
|
static final int VOLUME_MIN
static final int VOLUME_MAX
void play()
LionEngineException
- If unable to play sound.void play(int delayMilli)
delayMilli
- The delay before sound is played in milliseconds.LionEngineException
- If unable to play sound.void play(Align alignment, int volume)
alignment
- The sound alignment.volume
- The volume in percent [VOLUME_MIN
- VOLUME_MAX
]
.LionEngineException
- If unable to play sound.void play(Align alignment, int volume, int delayMilli)
alignment
- The sound alignment.volume
- The volume in percent [VOLUME_MIN
- VOLUME_MAX
]
.delayMilli
- The delay before sound is played in milliseconds.LionEngineException
- If unable to play sound.void stop()
LionEngineException
- If unable to stop sound.Copyright © 2016 Byron 3D Games Studio. All rights reserved.