My Project
|
A structure to hold a set of audio conversion filters and buffers. More...
#include <SDL_audio.h>
Public Attributes | |
int | needed |
SDL_AudioFormat | src_format |
SDL_AudioFormat | dst_format |
double | rate_incr |
Uint8 * | buf |
int | len |
int | len_cvt |
int | len_mult |
double | len_ratio |
SDL_AudioFilter | filters [SDL_AUDIOCVT_MAX_FILTERS+1] |
int | filter_index |
A structure to hold a set of audio conversion filters and buffers.
Note that various parts of the conversion pipeline can take advantage of SIMD operations (like SSE2, for example). SDL_AudioCVT doesn't require you to pass it aligned data, but can possibly run much faster if you set both its (buf) field to a pointer that is aligned to 16 bytes, and its (len) field to something that's a multiple of 16, if possible.
Uint8* SDL_AudioCVT::buf |
Buffer to hold entire audio data
SDL_AudioFormat SDL_AudioCVT::dst_format |
Target audio format
int SDL_AudioCVT::filter_index |
Current audio conversion function
SDL_AudioFilter SDL_AudioCVT::filters[SDL_AUDIOCVT_MAX_FILTERS+1] |
NULL-terminated list of filter functions
int SDL_AudioCVT::len |
Length of original audio buffer
int SDL_AudioCVT::len_cvt |
Length of converted audio buffer
int SDL_AudioCVT::len_mult |
buffer must be len*len_mult big
double SDL_AudioCVT::len_ratio |
Given len, final size is len*len_ratio
int SDL_AudioCVT::needed |
Set to 1 if conversion possible
double SDL_AudioCVT::rate_incr |
Rate conversion increment
SDL_AudioFormat SDL_AudioCVT::src_format |
Source audio format