#include <ugdk/audio/sample.h>
|
void | Play () |
| Plays the sound.
|
|
void | PlayForever () |
| Plays this sample until told to stop.
|
|
void | Play (int loops) |
| Plays the sound the given number of times.
|
|
void | Stop () |
| Stops playing the sound.
|
|
bool | IsPlaying () |
| Returns whether the sound is playing or not.
|
|
void | SetVolume (double vol) |
| Sets the volume.
|
|
double | Volume () |
| Returns the sound's volume.
|
|
Note: It isn't possible to instantiate a Sample directly. In order to play a sound, you must call LoadSample() from AudioManager. All memory management is done my the AudioManager.
- See Also
- AudioManager
bool ugdk::Sample::IsPlaying |
( |
| ) |
|
Returns whether the sound is playing or not.
void ugdk::Sample::Play |
( |
| ) |
|
void ugdk::Sample::Play |
( |
int |
loops | ) |
|
Plays the sound the given number of times.
void ugdk::Sample::PlayForever |
( |
| ) |
|
Plays this sample until told to stop.
void ugdk::Sample::SetVolume |
( |
double |
vol | ) |
|
Sets the volume.
Sets the volume between 0 and 1. 0 is silent, 1 is the max volume.
- Parameters
-
void ugdk::Sample::Stop |
( |
| ) |
|
double ugdk::Sample::Volume |
( |
| ) |
|
Returns the sound's volume.
- Returns
- The actual volume, 0.0 <= volume <= 1.0
The documentation for this class was generated from the following files: