The Audio Functions class.
More...
#include <audio.h>
|
|
| AudioFunctions () |
| | Construct a new Audio Functions object.
|
| |
|
| ~AudioFunctions () |
| | Destroy the Audio Functions object.
|
| |
|
AudioFunctions & | operator= (const AudioFunctions &)=delete |
| |
|
| AudioFunctions (const AudioFunctions &)=delete |
| | Construct a new Audio Functions object.
|
| |
| int | Play (AudioSampleBase *sample) |
| | Play a given file.
|
| |
|
void | PlayThreat () |
| | Play threat tone.
|
| |
|
void | PlayCaution () |
| | Play Caution tone.
|
| |
|
void | PlayWarning () |
| | Play Warning.
|
| |
|
| static int | Callback (const void *input, void *output, unsigned long frameCount, const PaStreamCallbackTimeInfo *timeInfo, PaStreamCallbackFlags statusFlags, void *userData) |
| | Portaudio callback for simple audio.
|
| |
|
|
const uint32_t | kFramesPerBuffer = 512 |
| | Number of frames per buffer.
|
| |
The Audio Functions class.
◆ gva::AudioFunctions::CallbackData
| struct gva::AudioFunctions::CallbackData |
| Data Fields |
|
SNDFILE * |
file |
The audio sample file. |
|
SF_INFO |
info |
The audio sample info. |
◆ Callback()
| int gva::AudioFunctions::Callback |
( |
const void * |
input, |
|
|
void * |
output, |
|
|
unsigned long |
frameCount, |
|
|
const PaStreamCallbackTimeInfo * |
timeInfo, |
|
|
PaStreamCallbackFlags |
statusFlags, |
|
|
void * |
userData |
|
) |
| |
|
static |
Portaudio callback for simple audio.
- Parameters
-
| input | |
| output | |
| frameCount | |
| timeInfo | |
| statusFlags | |
| userData | |
- Returns
- int
◆ Play()
Play a given file.
- Parameters
-
- Returns
- int
The documentation for this class was generated from the following files: