home *** CD-ROM | disk | FTP | other *** search
- <!-- manual page source format generated by PolyglotMan v3.0.8+X.Org, -->
- <!-- available at http://polyglotman.sourceforge.net/ -->
-
- <html>
- <head>
- <title>"SDL_AudioCVT"("3") manual page</title>
- </head>
- <body bgcolor='#efefef' text='black' link='blue' vlink='#551A8B' alink='red'>
- <a href='#toc'>Table of Contents</a><p>
-
- <h2><a name='sect0' href='#toc0'>Name</a></h2>
- SDL_AudioCVT- Audio Conversion Structure
- <h2><a name='sect1' href='#toc1'>Structure Definition</a></h2>
- <p>
- <br>
- <pre>CWtypedef struct{
- int needed;
- Uint16 src_format;
- Uint16 dest_format;
- double rate_incr;
- Uint8 *buf;
- int len;
- int len_cvt;
- int len_mult;
- double len_ratio;
- void (*filters[10])(struct SDL_AudioCVT *cvt, Uint16 format);
- int filter_index;
- } SDL_AudioCVT;
- </pre><p>
-
- <h2><a name='sect2' href='#toc2'>Structure Data</a></h2>
-
- <dl>
-
- <dt><b>needed</b> </dt>
- <dd>Set to one if the conversion is possible </dd>
-
- <dt><b>src_format</b>
- </dt>
- <dd>Audio format of the source </dd>
-
- <dt><b>dest_format</b> </dt>
- <dd>Audio format of the destination
- </dd>
-
- <dt><b>rate_incr</b> </dt>
- <dd>Rate conversion increment </dd>
-
- <dt><b>buf</b> </dt>
- <dd>Audio buffer </dd>
-
- <dt><b>len</b> </dt>
- <dd>Length of the
- original audio buffer in bytes </dd>
-
- <dt><b>len_cvt</b> </dt>
- <dd>Length of converted audio buffer
- in bytes (calculated) </dd>
-
- <dt><b>len_mult</b> </dt>
- <dd><b>buf</b> must be <b>len</b>*<b>len_mult</b> bytes in size(calculated)
- </dd>
-
- <dt><b>len_ratio</b> </dt>
- <dd>Final audio size is <b>len</b>*<b>len_ratio</b> </dd>
-
- <dt><b>filters[10](..)</b> </dt>
- <dd>Pointers to functions
- needed for this conversion </dd>
-
- <dt><b>filter_index</b> </dt>
- <dd>Current conversion function </dd>
- </dl>
-
- <h2><a name='sect3' href='#toc3'>Description</a></h2>
- <p>
- The
- <b>SDL_AudioCVT</b> is used to convert audio data between different formats. A
- <b>SDL_AudioCVT</b> structure is created with the <i><b>SDL_BuildAudioCVT</b></i> function,
- while the actual conversion is done by the <i><b>SDL_ConvertAudio</b></i> function. <p>
- Many
- of the fields in the <b>SDL_AudioCVT</b> structure should be considered private
- and their function will not be discussed here.
- <dl>
-
- <dt><b>Uint8 *</b><b>buf</b></dt>
- <dd></dd>
-
- <dt><b>int</b> <b>len</b></dt>
- <dd></dd>
-
- <dt><b>int</b> <b>len_mult</b></dt>
- <dd></dd>
-
- <dt><b>double</b>
- <b>len_ratio</b></dt>
- <dd></dd>
- </dl>
-
- <h2><a name='sect4' href='#toc4'>See Also</a></h2>
- <p>
- <i><b>SDL_BuildAudioCVT</b></i>, <i><b>SDL_ConvertAudio</b></i>, <i><b>SDL_AudioSpec</b></i>
- <!--
-
- <p>
-
- <hr><p>
- <a name='toc'><b>Table of Contents</b></a><p>
- <ul>
- <li><a name='toc0' href='#sect0'>Name</a></li>
- <li><a name='toc1' href='#sect1'>Structure Definition</a></li>
- <li><a name='toc2' href='#sect2'>Structure Data</a></li>
- <li><a name='toc3' href='#sect3'>Description</a></li>
- <li><a name='toc4' href='#sect4'>See Also</a></li>
- </ul>
- </body>
- </html>
-