|
openTRI 0.1
|
Data Structures | |
| struct | triAudioLibChannelInfo |
Macros | |
| #define | TRI_NUM_AUDIO_CHANNELS 4 |
| #define | TRI_NUM_AUDIO_SAMPLES 1024 |
| #define | TRI_VOLUME_MAX 0x8000 |
Typedefs | |
| typedef triVoid(* | triAudioLibCallback) (triVoid *buf, triUInt reqn, triVoid *pdata) |
Functions | |
| triBool | triAudioLibInit (triSInt priority) |
| Initialise the Audio Library. | |
| triVoid | triAudioLibShutdown () |
| Shutdown the Audio Library. | |
| triVoid | triAudioLibSetVolume (triSInt channel, triSInt left, triSInt right) |
| Set channel volume. | |
| triVoid | triAudioLibSetChannelCallback (triSInt channel, triAudioLibCallback callback, triVoid *data) |
| Setup a callback. | |
| triSInt | triAudioLibOutBlocking (triUInt channel, triUInt left, triUInt right, triVoid *data) |
| Panned Output. | |
| triBool triAudioLibInit | ( | triSInt | priority | ) |
Initialise the Audio Library.
| priority | - Priority to use for the audio threads. |
| triVoid triAudioLibSetVolume | ( | triSInt | channel, |
| triSInt | left, | ||
| triSInt | right ) |
Set channel volume.
| channel | - The audio channel. |
| left | - Left volume. |
| right | - Right volume. |
| triVoid triAudioLibSetChannelCallback | ( | triSInt | channel, |
| triAudioLibCallback | callback, | ||
| triVoid * | data ) |
Setup a callback.
| channel | - The audio channel. |
| callback | - The callback function. |
| pdata | - The data to pass. |
| triSInt triAudioLibOutBlocking | ( | triUInt | channel, |
| triUInt | left, | ||
| triUInt | right, | ||
| triVoid * | data ) |
Panned Output.
| channel | - The audio channel. |
| left | - Left volume. |
| right | - Right volume. |