Blender V2.61 - r43446
|
Go to the source code of this file.
Classes | |
struct | AUD_Specs |
Specification of a sound source. More... | |
struct | AUD_DeviceSpecs |
Specification of a sound device. More... | |
struct | AUD_Exception |
Exception structure. More... | |
Defines | |
#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_THROW(exception, errorstr) { AUD_Exception e; e.error = exception; e.str = errorstr; throw e; } |
Throws a AUD_Exception with the provided error code. | |
#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. | |
#define | AUD_MIN(a, b) (((a) < (b)) ? (a) : (b)) |
Returns the smaller of the two values. | |
#define | AUD_MAX(a, b) (((a) > (b)) ? (a) : (b)) |
Returns the bigger of the two values. | |
#define | AUD_BUFFER_RESIZE_BYTES 5292000 |
The size by which a buffer should be resized if the final extent is unknown. | |
#define | AUD_DEFAULT_BUFFER_SIZE 1024 |
The default playback buffer size of a device. | |
Typedefs | |
typedef float | sample_t |
Sample type.(float samples) | |
typedef unsigned char | data_t |
Sample data type (format samples) | |
typedef double | AUD_SampleRate |
Sample rate type. | |
Enumerations | |
enum | AUD_SampleFormat { AUD_FORMAT_INVALID = 0x00, AUD_FORMAT_U8 = 0x01, AUD_FORMAT_S16 = 0x12, AUD_FORMAT_S24 = 0x13, AUD_FORMAT_S32 = 0x14, AUD_FORMAT_FLOAT32 = 0x24, AUD_FORMAT_FLOAT64 = 0x28 } |
enum | AUD_Channels { AUD_CHANNELS_INVALID = 0, AUD_CHANNELS_MONO = 1, AUD_CHANNELS_STEREO = 2, AUD_CHANNELS_STEREO_LFE = 3, AUD_CHANNELS_SURROUND4 = 4, AUD_CHANNELS_SURROUND5 = 5, AUD_CHANNELS_SURROUND51 = 6, AUD_CHANNELS_SURROUND61 = 7, AUD_CHANNELS_SURROUND71 = 8 } |
The channel count. More... | |
enum | AUD_Channel { AUD_CHANNEL_FRONT_LEFT = 0, AUD_CHANNEL_FRONT_RIGHT, AUD_CHANNEL_FRONT_CENTER, AUD_CHANNEL_LFE, AUD_CHANNEL_REAR_LEFT, AUD_CHANNEL_REAR_RIGHT, AUD_CHANNEL_REAR_CENTER, AUD_CHANNEL_SIDE_LEFT, AUD_CHANNEL_SIDE_RIGHT, AUD_CHANNEL_MAX } |
The channel names. More... | |
enum | AUD_DefaultSampleRate { AUD_RATE_INVALID = 0, AUD_RATE_8000 = 8000, AUD_RATE_16000 = 16000, AUD_RATE_11025 = 11025, AUD_RATE_22050 = 22050, AUD_RATE_32000 = 32000, AUD_RATE_44100 = 44100, AUD_RATE_48000 = 48000, AUD_RATE_88200 = 88200, AUD_RATE_96000 = 96000, AUD_RATE_192000 = 192000 } |
enum | AUD_Status { AUD_STATUS_INVALID = 0, AUD_STATUS_PLAYING, AUD_STATUS_PAUSED } |
Status of a playback handle. More... | |
enum | AUD_Error { AUD_NO_ERROR = 0, AUD_ERROR_SPECS, AUD_ERROR_PROPS, AUD_ERROR_FILE, AUD_ERROR_SRC, AUD_ERROR_FFMPEG, AUD_ERROR_OPENAL, AUD_ERROR_SDL, AUD_ERROR_JACK } |
Error codes for exceptions (C++ library) or for return values (C API). More... | |
enum | AUD_FadeType { AUD_FADE_IN, AUD_FADE_OUT } |
Fading types. More... | |
enum | AUD_DistanceModel { AUD_DISTANCE_MODEL_INVALID = 0, AUD_DISTANCE_MODEL_INVERSE, AUD_DISTANCE_MODEL_INVERSE_CLAMPED, AUD_DISTANCE_MODEL_LINEAR, AUD_DISTANCE_MODEL_LINEAR_CLAMPED, AUD_DISTANCE_MODEL_EXPONENT, AUD_DISTANCE_MODEL_EXPONENT_CLAMPED } |
Possible distance models for the 3D device. More... | |
enum | AUD_AnimateablePropertyType { AUD_AP_VOLUME, AUD_AP_PANNING, AUD_AP_PITCH, AUD_AP_LOCATION, AUD_AP_ORIENTATION } |
Possible animatable properties for Sequencer Factories and Entries. More... | |
enum | AUD_Container { AUD_CONTAINER_INVALID = 0, AUD_CONTAINER_AC3, AUD_CONTAINER_FLAC, AUD_CONTAINER_MATROSKA, AUD_CONTAINER_MP2, AUD_CONTAINER_MP3, AUD_CONTAINER_OGG, AUD_CONTAINER_WAV } |
Container formats for writers. More... | |
enum | AUD_Codec { AUD_CODEC_INVALID = 0, AUD_CODEC_AAC, AUD_CODEC_AC3, AUD_CODEC_FLAC, AUD_CODEC_MP2, AUD_CODEC_MP3, AUD_CODEC_PCM, AUD_CODEC_VORBIS } |
Audio codecs for writers. More... |
Definition in file AUD_Space.h.
#define AUD_BUFFER_RESIZE_BYTES 5292000 |
The size by which a buffer should be resized if the final extent is unknown.
Definition at line 55 of file AUD_Space.h.
Referenced by AUD_StreamBufferFactory::AUD_StreamBufferFactory().
#define AUD_CHANNEL_BIT | ( | channel | ) | (0x01 << channel) |
Returns the bit for a channel mask.
Definition at line 46 of file AUD_Space.h.
#define AUD_COMPARE_SPECS | ( | s1, | |
s2 | |||
) | ((s1.rate == s2.rate) && (s1.channels == s2.channels)) |
Compares two audio data specifications.
Definition at line 43 of file AUD_Space.h.
Referenced by AUD_ReadDevice::changeSpecs(), AUD_DoubleReader::read(), and AUD_SuperposeReader::read().
#define AUD_DEFAULT_BUFFER_SIZE 1024 |
The default playback buffer size of a device.
Definition at line 58 of file AUD_Space.h.
Referenced by AUD_LimiterReader::AUD_LimiterReader(), Device_new(), and AUD_FFMPEGReader::seek().
#define AUD_DEVICE_SAMPLE_SIZE | ( | specs | ) | (specs.channels * (specs.format & 0x0F)) |
The size of a sample in the specified device format in bytes.
Definition at line 36 of file AUD_Space.h.
Referenced by AUD_FFMPEGWriter::AUD_FFMPEGWriter(), AUD_FFMPEGReader::read(), AUD_ReadDevice::read(), AUD_OpenALDevice::updateStreams(), AUD_FFMPEGWriter::write(), and AUD_FFMPEGWriter::~AUD_FFMPEGWriter().
#define AUD_FORMAT_SIZE | ( | format | ) | (format & 0x0F) |
The size of a format in bytes.
Definition at line 34 of file AUD_Space.h.
Referenced by AUD_FFMPEGReader::read().
#define AUD_MAX | ( | a, | |
b | |||
) | (((a) > (b)) ? (a) : (b)) |
Returns the bigger of the two values.
Definition at line 51 of file AUD_Space.h.
Referenced by AUD_FFMPEGWriter::AUD_FFMPEGWriter(), AUD_SuperposeReader::getPosition(), AUD_SequencerReader::read(), AUD_SuperposeReader::read(), AUD_SoftwareDevice::AUD_SoftwareHandle::update(), and AUD_FFMPEGWriter::write().
#define AUD_MIN | ( | a, | |
b | |||
) | (((a) < (b)) ? (a) : (b)) |
Returns the smaller of the two values.
Definition at line 49 of file AUD_Space.h.
Referenced by AUD_SuperposeReader::getLength(), AUD_LimiterReader::getPosition(), AUD_Mixer::mix(), AUD_FFMPEGReader::read(), AUD_SequencerReader::read(), AUD_FFMPEGReader::read_packet(), AUD_Buffer::resize(), AUD_SoftwareDevice::AUD_SoftwareHandle::update(), and AUD_FFMPEGWriter::write().
#define AUD_SAMPLE_SIZE | ( | specs | ) | (specs.channels * sizeof(sample_t)) |
The size of a sample in the specified format in bytes.
Definition at line 38 of file AUD_Space.h.
Referenced by AUD_FFMPEGWriter::AUD_FFMPEGWriter(), AUD_LimiterReader::AUD_LimiterReader(), AUD_LinearResampleReader::AUD_LinearResampleReader(), AUD_readSound(), AUD_StreamBufferFactory::AUD_StreamBufferFactory(), AUD_Mixer::clear(), AUD_SRCResampleReader::doCallback(), AUD_BufferReader::getLength(), AUD_SoftwareDevice::mix(), AUD_FaderReader::read(), AUD_BandPassReader::read(), AUD_DelayReader::read(), AUD_LinearResampleReader::read(), AUD_ConverterReader::read(), AUD_SRCResampleReader::read(), AUD_SuperposeReader::read(), AUD_BufferReader::read(), AUD_ReverseReader::read(), AUD_FFMPEGReader::seek(), AUD_FFMPEGWriter::write(), and AUD_FileWriter::writeReader().
#define AUD_THROW | ( | exception, | |
errorstr | |||
) | { AUD_Exception e; e.error = exception; e.str = errorstr; throw e; } |
Throws a AUD_Exception with the provided error code.
Definition at line 40 of file AUD_Space.h.
Referenced by AUD_FFMPEGReader::AUD_FFMPEGReader(), AUD_FFMPEGWriter::AUD_FFMPEGWriter(), AUD_JackDevice::AUD_JackDevice(), AUD_OpenALDevice::AUD_OpenALDevice(), AUD_ReverseReader::AUD_ReverseReader(), AUD_SDLDevice::AUD_SDLDevice(), AUD_SndFileReader::AUD_SndFileReader(), AUD_SndFileWriter::AUD_SndFileWriter(), AUD_SRCResampleReader::AUD_SRCResampleReader(), AUD_FileFactory::createReader(), AUD_FileWriter::createWriter(), AUD_SRCResampleReader::read(), and AUD_SuperposeReader::read().
typedef double AUD_SampleRate |
Sample rate type.
Definition at line 207 of file AUD_Space.h.
typedef unsigned char data_t |
Sample data type (format samples)
Definition at line 204 of file AUD_Space.h.
typedef float sample_t |
Sample type.(float samples)
Definition at line 201 of file AUD_Space.h.
Possible animatable properties for Sequencer Factories and Entries.
Definition at line 165 of file AUD_Space.h.
enum AUD_Channel |
The channel names.
Definition at line 90 of file AUD_Space.h.
enum AUD_Channels |
The channel count.
Definition at line 76 of file AUD_Space.h.
enum AUD_Codec |
Audio codecs for writers.
AUD_CODEC_INVALID | |
AUD_CODEC_AAC | |
AUD_CODEC_AC3 | |
AUD_CODEC_FLAC | |
AUD_CODEC_MP2 | |
AUD_CODEC_MP3 | |
AUD_CODEC_PCM | |
AUD_CODEC_VORBIS |
Definition at line 188 of file AUD_Space.h.
enum AUD_Container |
Container formats for writers.
AUD_CONTAINER_INVALID | |
AUD_CONTAINER_AC3 | |
AUD_CONTAINER_FLAC | |
AUD_CONTAINER_MATROSKA | |
AUD_CONTAINER_MP2 | |
AUD_CONTAINER_MP3 | |
AUD_CONTAINER_OGG | |
AUD_CONTAINER_WAV |
Definition at line 175 of file AUD_Space.h.
The sample rate tells how many samples are played back within one second. Some exotic formats may use other sample rates than provided here.
Definition at line 108 of file AUD_Space.h.
enum AUD_DistanceModel |
Possible distance models for the 3D device.
Definition at line 153 of file AUD_Space.h.
enum AUD_Error |
Error codes for exceptions (C++ library) or for return values (C API).
AUD_NO_ERROR | |
AUD_ERROR_SPECS | |
AUD_ERROR_PROPS | |
AUD_ERROR_FILE | |
AUD_ERROR_SRC | |
AUD_ERROR_FFMPEG | |
AUD_ERROR_OPENAL | |
AUD_ERROR_SDL | |
AUD_ERROR_JACK |
Definition at line 132 of file AUD_Space.h.
enum AUD_FadeType |
enum AUD_SampleFormat |
The format of a sample. The last 4 bit save the byte count of the format.
Definition at line 64 of file AUD_Space.h.
enum AUD_Status |
Status of a playback handle.
AUD_STATUS_INVALID | |
AUD_STATUS_PLAYING |
Invalid handle. Maybe due to stopping. |
AUD_STATUS_PAUSED |
Sound is playing. Sound is being paused. |
Definition at line 124 of file AUD_Space.h.