|
Size: 1114
Comment: create page, add content
|
Size: 1276
Comment: format adjustments
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 5: | Line 5: |
| A structure that contains a set of audio conversion filters and buffers. | A structure that is used for audio data conversion. |
| Line 14: | Line 14: |
| ||Uint8||'''^*^buf'''||^a pointer to a^ buffer to hold entire audio data|| | ||Uint8*||'''buf'''||a pointer to a buffer to hold entire audio data|| |
| Line 17: | Line 17: |
| ||int||'''len_mult'''||buffer must be len*len_mult big|| ||double||'''len_ratio'''||given len, final size is len*len_ratio|| ||[[SDL_AudioFilter]]||'''filters[10]'''||filter list|| ||int||'''filter_index'''||current audio conversion function|| |
||int||'''len_mult'''||'''buf''' must be len*len_mult big|| ||double||'''len_ratio'''||given '''len''', final size is len*len_ratio|| ||<style="color: #808080;">SDL_Audio``Filter[10]||<style="color: #808080;">'''filters'''||<style="color: #808080;">filter list (internal use)|| ||<style="color: #808080;">int||<style="color: #808080;">'''filter_index'''||<style="color: #808080;">current audio conversion function (internal use)|| |
SDL_AudioCVT
A structure that is used for audio data conversion.
Data Fields
int |
needed |
set to 1 if conversion possible |
src_format |
source audio format |
|
dst_format |
target audio format |
|
double |
rate_incr |
rate conversion increment |
Uint8* |
buf |
a pointer to a buffer to hold entire audio data |
int |
len |
length of original audio buffer |
int |
len_cvt |
length of converted audio buffer |
int |
len_mult |
buf must be len*len_mult big |
double |
len_ratio |
given len, final size is len*len_ratio |
SDL_AudioFilter[10] |
filters |
filter list (internal use) |
int |
filter_index |
current audio conversion function (internal use) |
Code Examples
You can add your code example here
Remarks
You can add useful comments here
