|
Torque2D Reference
|
Classes | |
| struct | Description |
Enumerations | |
| enum | Constants { AudioVolumeChannels = 32 , AudioPreviewChannel = AudioVolumeChannels - 1 } |
Functions | |
| F32 | DBToLinear (F32 value) |
| F32 | linearToDB (F32 value) |
| void | shutdownContext () |
| bool | OpenALIsInitialized () |
| bool | OpenALInit () |
| void | OpenALShutdown () |
| bool | OpenALDLLInit () |
| void | OpenALDLLShutdown () |
| void | initOpenAL () |
| void | shutdownOpenAL () |
| void | destroy () |
Variables | |
| const int | logmax = sizeof logtab / sizeof *logtab |
| enum Constants |
| F32 DBToLinear | ( | F32 | value | ) |
| void destroy | ( | ) |
| void initOpenAL | ( | ) |
| F32 linearToDB | ( | F32 | value | ) |
| bool OpenALDLLInit | ( | ) |
The MacOS X build links against the OpenAL framework. It can be built to use either an internal framework, or the system framework. Since OpenAL is weak-linked in at compile time, we don't need to init anything. Stub it out...
| void OpenALDLLShutdown | ( | ) |
Stubbed out, see the note on OpenALDLLInit().
| bool OpenALInit | ( | ) |
| bool OpenALIsInitialized | ( | ) |
Whether there is a live OpenAL context.
OpenALInit begins by shutting the driver down, so calling it a second time is destructive: it drops every playing source and resets the channel volumes. Anything that wants to start the driver only if nobody else has – an editor, say – has to be able to ask first.
| void OpenALShutdown | ( | ) |
| void shutdownContext | ( | ) |
| void shutdownOpenAL | ( | ) |
| const int logmax = sizeof logtab / sizeof *logtab |