|
|
LibN2L-4 Library Code Reference
Classes
Compounds
Files
Members
Method Index
Full Reference
n2l::cAudioMixer Class ReferenceA singleton class representing the audio mixing device provided by SDL_mixer.
More...
#include <cAudioMixer.h>
Collaboration diagram for n2l::cAudioMixer:
[legend]List of all members.Public Types
- typedef tUint tFrequency
- typedef tSint tMixChannels
- enum tFormat {
Format_U8 = AUDIO_U8,
Format_S8 = AUDIO_S8,
Format_U16LSB = AUDIO_U16LSB,
Format_S16LSB = AUDIO_S16LSB,
Format_U16MSB = AUDIO_U16MSB,
Format_S16MSB = AUDIO_S16MSB,
Format_U16SYS = AUDIO_U16SYS,
Format_S16SYS = AUDIO_S16SYS,
Format_Unknown
}
- enum tFadeStatus { Fading_None = MIX_NO_FADING,
Fading_Out = MIX_FADING_OUT,
Fading_In = MIX_FADING_IN
}
- enum tSoundChannels { Channels_Mono = 1,
Channels_Stereo = 2
}
- enum tSoundDriver {
SoundDriver_Auto,
SoundDriver_OpenBSD,
SoundDriver_DSP,
SoundDriver_ALSA,
SoundDriver_Audio,
SoundDriver_AL,
SoundDriver_ARTSC,
SoundDriver_ESD,
SoundDriver_NAS,
SoundDriver_DMA,
SoundDriver_DSound,
SoundDriver_WaveOut,
SoundDriver_BeOS,
SoundDriver_MacOSSoundManager,
SoundDriver_AIX,
SoundDriver_AHI,
SoundDriver_Disk,
SoundDriver_Null,
SoundDriver_NumSoundDrivers
}
Static Public Member Functions
Static Public Attributes
Classes
Detailed Description
A singleton class representing the audio mixing device provided by SDL_mixer.
Definition at line 45 of file cAudioMixer.h.
Member Typedef Documentation
Member Enumeration Documentation
|
|
- Enumerator:
-
| Fading_None |
|
| Fading_Out |
|
| Fading_In |
|
Definition at line 71 of file cAudioMixer.h. |
|
|
- Enumerator:
-
| Format_U8 |
|
| Format_S8 |
|
| Format_U16LSB |
|
| Format_S16LSB |
|
| Format_U16MSB |
|
| Format_S16MSB |
|
| Format_U16SYS |
|
| Format_S16SYS |
|
| Format_Unknown |
|
Definition at line 59 of file cAudioMixer.h. |
|
|
- Enumerator:
-
| Channels_Mono |
|
| Channels_Stereo |
|
Definition at line 77 of file cAudioMixer.h. |
|
|
- Enumerator:
-
| SoundDriver_Auto |
|
| SoundDriver_OpenBSD |
|
| SoundDriver_DSP |
|
| SoundDriver_ALSA |
|
| SoundDriver_Audio |
|
| SoundDriver_AL |
|
| SoundDriver_ARTSC |
|
| SoundDriver_ESD |
|
| SoundDriver_NAS |
|
| SoundDriver_DMA |
|
| SoundDriver_DSound |
|
| SoundDriver_WaveOut |
|
| SoundDriver_BeOS |
|
| SoundDriver_MacOSSoundManager |
|
| SoundDriver_AIX |
|
| SoundDriver_AHI |
|
| SoundDriver_Disk |
|
| SoundDriver_Null |
|
| SoundDriver_NumSoundDrivers |
|
Definition at line 82 of file cAudioMixer.h. |
Member Function Documentation
| void n2l::cAudioMixer::allocateMixingChannels |
( |
const tMixChannels |
iNum |
) |
[static] |
|
| void n2l::cAudioMixer::channelVolume |
( |
const tAudioChannel |
iChannel, |
|
|
const tFloat & |
iVolume |
|
) |
[static] |
|
| void n2l::cAudioMixer::closeAudio |
( |
|
) |
[static] |
|
| const tString & n2l::cAudioMixer::driverName |
( |
|
) |
[static] |
|
| void n2l::cAudioMixer::fadeOutMusic |
( |
const tUint |
iMilliseconds |
) |
[static] |
|
|
|
Definition at line 160 of file cAudioMixer.cpp.
References Format_S16LSB, Format_S16MSB, Format_S8, Format_U16LSB, Format_U16MSB, Format_U8, Format_Unknown, and frequency().
Referenced by formatAsString(), frequency(), sampleSize(), and soundChannels(). |
| const tString & n2l::cAudioMixer::formatAsString |
( |
|
) |
[static] |
|
| static const tBool n2l::cAudioMixer::inited |
( |
|
) |
[inline, static] |
|
| void n2l::cAudioMixer::musicVolume |
( |
const tFloat |
iVolume |
) |
[static] |
|
| void n2l::cAudioMixer::musicVolume |
( |
const tSint |
iVolume |
) |
[static] |
|
| const tUint n2l::cAudioMixer::numChannels |
( |
|
) |
[static] |
|
|
|
Return the total number of channels.
- Note:
- This number will not include the music channel if a channel is being used to fake the music player.
This method should be used rather than adding the results of numChannelsPlaying and numFreeChannels since theoretically channel status could change between calls.
Definition at line 285 of file cAudioMixer.cpp. |
| const tUint n2l::cAudioMixer::numChannelsPlaying |
( |
|
) |
[static] |
|
|
|
Return the number of channels currently playing.
- Note:
- If music is being faked on an audio channel, it is not returned in the count, even if music is currently playing.
Definition at line 264 of file cAudioMixer.cpp.
References MusicChannel.
Referenced by numFreeChannels(). |
| const tUint n2l::cAudioMixer::numFreeChannels |
( |
|
) |
[static] |
|
|
|
Return the number of mixing channels which are currently not in use.
- Note:
- If music is being faked on an audio channel but is not currently playing, the music channel will still not be returned.
Definition at line 276 of file cAudioMixer.cpp.
References numChannelsPlaying(). |
| void n2l::cAudioMixer::registerSource |
( |
cAudioSource * |
ioSource |
) |
[static] |
|
| const tUint n2l::cAudioMixer::sampleSize |
( |
|
) |
[static] |
|
| void n2l::cAudioMixer::setDriver |
( |
const tSoundDriver & |
iDriver |
) |
[static] |
|
| void n2l::cAudioMixer::unregisterSource |
( |
cAudioSource * |
ioSource |
) |
[static] |
|
Member Data Documentation
|
|
Initial value:
new cAudioMixer::cSubSysHolder()
Definition at line 114 of file cAudioMixer.h. |
The documentation for this class was generated from the following files:
|