7 CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
10 TITLE="SDL Library Documentation"
11 HREF="index.html"><LINK
14 HREF="audio.html"><LINK
17 HREF="audio.html"><LINK
20 HREF="sdlopenaudio.html"></HEAD
31 SUMMARY="Header navigation table"
40 >SDL Library Documentation</TH
62 HREF="sdlopenaudio.html"
83 >SDL_AudioSpec -- Audio Specification Structure</DIV
90 >Structure Definition</H2
92 CLASS="PROGRAMLISTING"
100 void (*callback)(void *userdata, Uint8 *stream, int len);
102 } SDL_AudioSpec;</PRE
112 CLASS="INFORMALTABLE"
135 >Audio frequency in samples per second</TD
150 >Audio data format</TD
165 >Number of channels: 1 mono, 2 stereo</TD
180 >Audio buffer silence value (calculated)</TD
195 >Audio buffer size in samples</TD
210 >Audio buffer size in bytes (calculated)</TD
225 >Callback function for filling the audio buffer</TD
240 >Pointer the user data which is passed to the callback function</TD
259 > structure is used to describe the format of some audio data. This structure is used by <A
260 HREF="sdlopenaudio.html"
266 HREF="sdlloadwav.html"
271 >. While all fields are used by <TT
297 >. We will detail these common members here.</P
299 CLASS="INFORMALTABLE"
323 >The number of samples sent to the sound device every second. Common values are 11025, 22050 and 44100. The higher the better.</P
340 >Specifies the size and type of each sample element
353 >Unsigned 8-bit samples</P
362 >Signed 8-bit samples</P
374 >Unsigned 16-bit little-endian samples</P
386 >Signed 16-bit little-endian samples</P
395 >Unsigned 16-bit big-endian samples</P
404 >Signed 16-bit big-endian samples</P
419 > depending on you systems endianness</P
434 > depending on you systems endianness</P
454 >The number of seperate sound channels. 1 is mono (single channel), 2 is stereo (dual channel).</TD
470 HREF="sdlopenaudio.html"
475 > this refers to the size of the audio buffer in samples. A sample a chunk of audio data of the size specified in <TT
480 > mulitplied by the number of channels. When the <SPAN
484 HREF="sdlloadwav.html"
494 > is set to 4096.</TD
511 HREF="sdlopenaudio.html"
518 HREF="sdlloadwav.html"
530 SUMMARY="Footer navigation table"
559 HREF="sdlopenaudio.html"