Penguin
Blame: SDL_AudioCVT(3)
EditPageHistoryDiffInfoLikePages
Annotated edit history of SDL_AudioCVT(3) version 2, including all changes. View license author blame.
Rev Author # Line
1 perry 1 SDL_AudioCVT
2 !!!SDL_AudioCVT
3 NAME
4 STRUCTURE DEFINITION
5 STRUCTURE DATA
6 DESCRIPTION
7 SEE ALSO
8 ----
9 !!NAME
10
11
12 SDL_AudioCVT- Audio Conversion Structure
13 !!STRUCTURE DEFINITION
14
15
16 typedef struct{
17 int needed;
18 Uint16 src_format;
19 Uint16 dest_format;
20 double rate_incr;
21 Uint8 *buf;
22 int len;
23 int len_cvt;
24 int len_mult;
25 double len_ratio;
26 void (*filters[[10])(struct SDL_AudioCVT *cvt, Uint16 format);
27 int filter_index;
28 } SDL_AudioCVT;
29 !!STRUCTURE DATA
30
31
32 __needed__ Set to one if the conversion is
33 possible
34
35
36 __src_format__ Audio format of the source
37
38
39 __dest_format__ Audio format of the
40 destination
41
42
43 __rate_incr__ Rate conversion increment
44
45
46 __buf__ Audio buffer
47
48
49 __len__ Length of the original audio buffer in
50 bytes
51
52
53 __len_cvt__ Length of converted audio buffer in bytes
54 (calculated)
55
56
57 __len_mult buf__ must be __len__*__len_mult__ bytes
58 in size(calculated)
59
60
61 __len_ratio__ Final audio size is
62 __len__*__len_ratio__
63
64
65 __filters[[10](..)__
66
67
68 Pointers to functions needed for this
69 conversion
70
71
72 __filter_index__ Current conversion function
73 !!DESCRIPTION
74
75
76 The __SDL_AudioCVT__ is used to convert audio data
77 between different formats. A __SDL_AudioCVT__ structure
78 is created with the __SDL_BuildAudioCVT__ function, while
2 perry 79 the actual conversion is done by the __SDL_!ConvertAudio__
1 perry 80 function.
81
82
83 Many of the fields in the __SDL_AudioCVT__ structure
84 should be considered private and their function will not be
85 discussed here.
86
87
88 __Uint8 *buf__
89
90
91 __int len__
92
93
94 __int len_mult__
95
96
97 __double len_ratio__
98 !!SEE ALSO
99
100
2 perry 101 __SDL_BuildAudioCVT__, __SDL_!ConvertAudio__,
102 __SDL_!AudioSpec__
1 perry 103 ----
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.