Audaspace
1.3.0
A high level audio library.
|
Go to the documentation of this file.
28 #define AUD_FORMAT_SIZE(format) (format & 0x0F)
29 #define AUD_DEVICE_SAMPLE_SIZE(specs) (specs.channels * (specs.format & 0x0F))
31 #define AUD_SAMPLE_SIZE(specs) (specs.channels * sizeof(sample_t))
35 #define AUD_COMPARE_SPECS(s1, s2) ((s1.rate == s2.rate) && (s1.channels == s2.channels))
38 #define AUD_CHANNEL_BIT(channel) (0x01 << channel)
48 FORMAT_INVALID = 0x00,
74 CHANNEL_FRONT_LEFT = 0,
@ RATE_16000
8000 Hz.
Definition: Specification.h:94
Specification of a sound source.
Definition: Specification.h:110
Channel
The channel names.
Definition: Specification.h:73
SampleFormat
The format of a sample.
Definition: Specification.h:47
double SampleRate
Sample rate type.
Definition: Specification.h:106
@ CHANNELS_SURROUND4
Stereo with LFE channel.
Definition: Specification.h:64
@ FORMAT_S32
3 byte signed integer.
Definition: Specification.h:52
@ CHANNELS_SURROUND51
5 channel surround sound.
Definition: Specification.h:66
@ FORMAT_FLOAT64
4 byte float.
Definition: Specification.h:54
@ RATE_88200
48000 Hz.
Definition: Specification.h:100
@ RATE_8000
Invalid sample rate.
Definition: Specification.h:93
@ FORMAT_U8
Invalid sample format.
Definition: Specification.h:49
Specification of a sound device.
Definition: Specification.h:120
SampleRate rate
Sample rate in Hz.
Definition: Specification.h:129
SampleRate rate
Sample rate in Hz.
Definition: Specification.h:112
@ CHANNELS_STEREO_LFE
Stereo.
Definition: Specification.h:63
DefaultSampleRate
The sample rate tells how many samples are played back within one second.
Definition: Specification.h:91
Channels
The channel count.
Definition: Specification.h:59
Channels channels
Channel count.
Definition: Specification.h:115
@ CHANNELS_SURROUND5
4 channel surround sound.
Definition: Specification.h:65
Channels channels
Channel count.
Definition: Specification.h:132
SampleFormat format
Sample format.
Definition: Specification.h:122
@ RATE_192000
96000 Hz.
Definition: Specification.h:102
@ FORMAT_S16
1 byte unsigned byte.
Definition: Specification.h:50
@ RATE_32000
22050 Hz.
Definition: Specification.h:97
@ RATE_48000
44100 Hz.
Definition: Specification.h:99
@ FORMAT_S24
2 byte signed integer.
Definition: Specification.h:51
@ RATE_44100
32000 Hz.
Definition: Specification.h:98
@ RATE_96000
88200 Hz.
Definition: Specification.h:101
@ CHANNELS_SURROUND61
5.1 surround sound.
Definition: Specification.h:67
@ CHANNELS_SURROUND71
6.1 surround sound.
Definition: Specification.h:68
#define AUD_NAMESPACE_END
Closes the audaspace namespace aud.
Definition: Audaspace.h:119
@ RATE_22050
11025 Hz.
Definition: Specification.h:96
@ FORMAT_FLOAT32
4 byte signed integer.
Definition: Specification.h:53
@ CHANNELS_MONO
Invalid channel count.
Definition: Specification.h:61
@ RATE_11025
16000 Hz.
Definition: Specification.h:95
#define AUD_NAMESPACE_BEGIN
Opens the audaspace namespace aud.
Definition: Audaspace.h:116
@ CHANNELS_STEREO
Mono.
Definition: Specification.h:62
The main header file of the library defining the namespace and basic data types.