Audaspace
1.6.0
A high level audio library.
|
Defines all important macros and basic data structures for stream format descriptions. More...
#include "Audaspace.h"
Go to the source code of this file.
Classes | |
struct | Specs |
Specification of a sound source. More... | |
struct | DeviceSpecs |
Specification of a sound device. More... | |
Macros | |
#define | AUD_FORMAT_SIZE(format) (format & 0x0F) |
The size of a format in bytes. | |
#define | AUD_DEVICE_SAMPLE_SIZE(specs) (specs.channels * (specs.format & 0x0F)) |
The size of a sample in the specified device format in bytes. | |
#define | AUD_SAMPLE_SIZE(specs) (specs.channels * sizeof(sample_t)) |
The size of a sample in the specified format in bytes. | |
#define | AUD_COMPARE_SPECS(s1, s2) ((s1.rate == s2.rate) && (s1.channels == s2.channels)) |
Compares two audio data specifications. | |
#define | AUD_CHANNEL_BIT(channel) (0x01 << channel) |
Returns the bit for a channel mask. | |
Typedefs | |
typedef double | SampleRate |
Sample rate type. | |
Enumerations | |
enum | SampleFormat { FORMAT_INVALID = 0x00, FORMAT_U8 = 0x01, FORMAT_S16 = 0x12, FORMAT_S24 = 0x13, FORMAT_S32 = 0x14, FORMAT_FLOAT32 = 0x24, FORMAT_FLOAT64 = 0x28 } |
The format of a sample. More... | |
enum | Channels { CHANNELS_INVALID = 0, CHANNELS_MONO = 1, CHANNELS_STEREO = 2, CHANNELS_STEREO_LFE = 3, CHANNELS_SURROUND4 = 4, CHANNELS_SURROUND5 = 5, CHANNELS_SURROUND51 = 6, CHANNELS_SURROUND61 = 7, CHANNELS_SURROUND71 = 8 } |
The channel count. More... | |
enum | Channel { CHANNEL_FRONT_LEFT = 0, CHANNEL_FRONT_RIGHT, CHANNEL_FRONT_CENTER, CHANNEL_LFE, CHANNEL_REAR_LEFT, CHANNEL_REAR_RIGHT, CHANNEL_REAR_CENTER, CHANNEL_SIDE_LEFT, CHANNEL_SIDE_RIGHT, CHANNEL_MAX } |
The channel names. | |
enum | ResampleQuality { FASTEST = 0, ResampleQuality::LOW, ResampleQuality::MEDIUM, ResampleQuality::HIGH } |
Resampling algorithm and quality. More... | |
enum | DefaultSampleRate { RATE_INVALID = 0, RATE_8000 = 8000, RATE_16000 = 16000, RATE_11025 = 11025, RATE_22050 = 22050, RATE_32000 = 32000, RATE_44100 = 44100, RATE_48000 = 48000, RATE_88200 = 88200, RATE_96000 = 96000, RATE_192000 = 192000 } |
The sample rate tells how many samples are played back within one second. More... | |
Defines all important macros and basic data structures for stream format descriptions.
enum Channels |
The channel count.
enum DefaultSampleRate |
The sample rate tells how many samples are played back within one second.
Some exotic formats may use other sample rates than provided here.
|
strong |
enum SampleFormat |