Interfaces with SDL_Mixer to start/stop a sound.
More...
|
| | this (AudioResource audio, int volume, int loops) |
| | Create a request for SDL_Mixer to play audio.
|
| |
| int | Play () |
| | Start playing the sound.
|
| |
|
void | Stop () |
| | Stop playing the sound.
|
| |
|
|
AudioResource | mAudio |
| | The AudioResource containing the audio data to play.
|
| |
|
int | mVolume |
| | The volume at which to play the audio.
|
| |
|
int | mLoops |
| | The number of times to play the sound before terminating.
|
| |
Interfaces with SDL_Mixer to start/stop a sound.
Not intended to be called outside of AudioManager.
- See also
- AudioManager
◆ this()
| AudioRequest::this |
( |
AudioResource | audio, |
|
|
int | volume, |
|
|
int | loops ) |
|
inline |
Create a request for SDL_Mixer to play audio.
- Parameters
-
| audio | the AudioResource corresponding to the request |
| volume | how loud to play the sound |
| loops | the number of times to play the sound before terminating |
◆ Play()
| int AudioRequest::Play |
( |
| ) |
|
|
inline |
The documentation for this struct was generated from the following file: