SDL
2.0
|
A structure to hold a set of audio conversion filters and buffers. More...
#include <SDL_audio.h>
Data Fields | |
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.
Definition at line 225 of file SDL_audio.h.
Uint8* SDL_AudioCVT::buf |
Buffer to hold entire audio data
Definition at line 231 of file SDL_audio.h.
Referenced by audio_convertAudio(), main(), SDL_Convert51To71(), SDL_Convert51ToQuad(), SDL_Convert51ToStereo(), SDL_Convert71To51(), SDL_Convert_F32_to_S16_Scalar(), SDL_Convert_F32_to_S32_Scalar(), SDL_Convert_F32_to_S8_Scalar(), SDL_Convert_F32_to_U16_Scalar(), SDL_Convert_F32_to_U8_Scalar(), SDL_Convert_S16_to_F32_Scalar(), SDL_Convert_S32_to_F32_Scalar(), SDL_Convert_S8_to_F32_Scalar(), SDL_Convert_U16_to_F32_Scalar(), SDL_Convert_U8_to_F32_Scalar(), SDL_ConvertAudio(), SDL_ConvertMonoToStereo(), SDL_ConvertQuadTo51(), SDL_ConvertQuadToStereo(), SDL_ConvertStereoTo51(), SDL_ConvertStereoToMono(), SDL_ConvertStereoToQuad(), and SDL_ResampleCVT().
SDL_AudioFormat SDL_AudioCVT::dst_format |
int SDL_AudioCVT::filter_index |
Current audio conversion function
Definition at line 237 of file SDL_audio.h.
Referenced by SDL_AddAudioCVTFilter(), SDL_BuildAudioCVT(), SDL_BuildAudioResampleCVT(), SDL_Convert51To71(), SDL_Convert51ToQuad(), SDL_Convert51ToStereo(), SDL_Convert71To51(), SDL_Convert_Byteswap(), SDL_Convert_F32_to_S16_Scalar(), SDL_Convert_F32_to_S32_Scalar(), SDL_Convert_F32_to_S8_Scalar(), SDL_Convert_F32_to_U16_Scalar(), SDL_Convert_F32_to_U8_Scalar(), SDL_Convert_S16_to_F32_Scalar(), SDL_Convert_S32_to_F32_Scalar(), SDL_Convert_S8_to_F32_Scalar(), SDL_Convert_U16_to_F32_Scalar(), SDL_Convert_U8_to_F32_Scalar(), SDL_ConvertAudio(), SDL_ConvertMonoToStereo(), SDL_ConvertQuadTo51(), SDL_ConvertQuadToStereo(), SDL_ConvertStereoTo51(), SDL_ConvertStereoToMono(), SDL_ConvertStereoToQuad(), and SDL_ResampleCVT().
SDL_AudioFilter SDL_AudioCVT::filters[SDL_AUDIOCVT_MAX_FILTERS+1] |
NULL-terminated list of filter functions
Definition at line 236 of file SDL_audio.h.
Referenced by SDL_AddAudioCVTFilter(), SDL_BuildAudioCVT(), SDL_BuildAudioResampleCVT(), SDL_Convert51To71(), SDL_Convert51ToQuad(), SDL_Convert51ToStereo(), SDL_Convert71To51(), SDL_Convert_Byteswap(), SDL_Convert_F32_to_S16_Scalar(), SDL_Convert_F32_to_S32_Scalar(), SDL_Convert_F32_to_S8_Scalar(), SDL_Convert_F32_to_U16_Scalar(), SDL_Convert_F32_to_U8_Scalar(), SDL_Convert_S16_to_F32_Scalar(), SDL_Convert_S32_to_F32_Scalar(), SDL_Convert_S8_to_F32_Scalar(), SDL_Convert_U16_to_F32_Scalar(), SDL_Convert_U8_to_F32_Scalar(), SDL_ConvertAudio(), SDL_ConvertMonoToStereo(), SDL_ConvertQuadTo51(), SDL_ConvertQuadToStereo(), SDL_ConvertStereoTo51(), SDL_ConvertStereoToMono(), SDL_ConvertStereoToQuad(), and SDL_ResampleCVT().
int SDL_AudioCVT::len |
Length of original audio buffer
Definition at line 232 of file SDL_audio.h.
Referenced by audio_convertAudio(), main(), SDL_ConvertAudio(), and SDL_ResampleCVT().
int SDL_AudioCVT::len_cvt |
Length of converted audio buffer
Definition at line 233 of file SDL_audio.h.
Referenced by main(), SDL_Convert51To71(), SDL_Convert51ToQuad(), SDL_Convert51ToStereo(), SDL_Convert71To51(), SDL_Convert_F32_to_S16_Scalar(), SDL_Convert_F32_to_S32_Scalar(), SDL_Convert_F32_to_S8_Scalar(), SDL_Convert_F32_to_U16_Scalar(), SDL_Convert_F32_to_U8_Scalar(), SDL_Convert_S16_to_F32_Scalar(), SDL_Convert_S32_to_F32_Scalar(), SDL_Convert_S8_to_F32_Scalar(), SDL_Convert_U16_to_F32_Scalar(), SDL_Convert_U8_to_F32_Scalar(), SDL_ConvertAudio(), SDL_ConvertMonoToStereo(), SDL_ConvertQuadTo51(), SDL_ConvertQuadToStereo(), SDL_ConvertStereoTo51(), SDL_ConvertStereoToMono(), SDL_ConvertStereoToQuad(), and SDL_ResampleCVT().
int SDL_AudioCVT::len_mult |
buffer must be len*len_mult big
Definition at line 234 of file SDL_audio.h.
Referenced by audio_buildAudioCVT(), audio_convertAudio(), main(), SDL_BuildAudioCVT(), SDL_BuildAudioResampleCVT(), SDL_BuildAudioTypeCVTFromFloat(), SDL_BuildAudioTypeCVTToFloat(), and SDL_ResampleCVT().
double SDL_AudioCVT::len_ratio |
Given len, final size is len*len_ratio
Definition at line 235 of file SDL_audio.h.
Referenced by audio_convertAudio(), SDL_BuildAudioCVT(), SDL_BuildAudioResampleCVT(), SDL_BuildAudioTypeCVTFromFloat(), and SDL_BuildAudioTypeCVTToFloat().
int SDL_AudioCVT::needed |
Set to 1 if conversion possible
Definition at line 227 of file SDL_audio.h.
Referenced by SDL_BuildAudioCVT().
double SDL_AudioCVT::rate_incr |
Rate conversion increment
Definition at line 230 of file SDL_audio.h.
Referenced by SDL_BuildAudioCVT().
SDL_AudioFormat SDL_AudioCVT::src_format |
Source audio format
Definition at line 228 of file SDL_audio.h.
Referenced by SDL_BuildAudioCVT(), and SDL_ConvertAudio().