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,
SampleRate rate
Sample rate in Hz.
Definition: Specification.h:121
8000 Hz.
Definition: Specification.h:103
#define AUD_NAMESPACE_BEGIN
Opens the audaspace namespace aud.
Definition: Audaspace.h:116
96000 Hz.
Definition: Specification.h:111
Invalid sample format.
Definition: Specification.h:49
DefaultSampleRate
The sample rate tells how many samples are played back within one second.
Definition: Specification.h:99
22050 Hz.
Definition: Specification.h:106
4 byte signed integer.
Definition: Specification.h:53
4 byte float.
Definition: Specification.h:54
Channels
The channel count.
Definition: Specification.h:58
Channels channels
Channel count.
Definition: Specification.h:141
16000 Hz.
Definition: Specification.h:104
Channel
The channel names.
Definition: Specification.h:72
SampleFormat
The format of a sample.
Definition: Specification.h:46
Stereo.
Definition: Specification.h:63
Specification of a sound source.
Definition: Specification.h:118
double SampleRate
Sample rate type.
Definition: Specification.h:115
48000 Hz.
Definition: Specification.h:109
Specification of a sound device.
Definition: Specification.h:128
Stereo with LFE channel.
Definition: Specification.h:64
44100 Hz.
Definition: Specification.h:108
SampleRate rate
Sample rate in Hz.
Definition: Specification.h:138
Channels channels
Channel count.
Definition: Specification.h:124
1 byte unsigned byte.
Definition: Specification.h:50
4 channel surround sound.
Definition: Specification.h:65
JOS resample at medium quality preset.
3 byte signed integer.
Definition: Specification.h:52
5.1 surround sound.
Definition: Specification.h:67
11025 Hz.
Definition: Specification.h:105
ResampleQuality
Resampling algorithm and quality.
Definition: Specification.h:87
#define AUD_NAMESPACE_END
Closes the audaspace namespace aud.
Definition: Audaspace.h:119
6.1 surround sound.
Definition: Specification.h:68
5 channel surround sound.
Definition: Specification.h:66
Linear resample, very fast but lowest quality.
The main header file of the library defining the namespace and basic data types.
2 byte signed integer.
Definition: Specification.h:51
Invalid channel count.
Definition: Specification.h:61
SampleFormat format
Sample format.
Definition: Specification.h:131
88200 Hz.
Definition: Specification.h:110
Invalid sample rate.
Definition: Specification.h:102
JOS resample at low quality preset.
32000 Hz.
Definition: Specification.h:107
Mono.
Definition: Specification.h:62