<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>SDL_sound: Sound_AudioInfo Struct Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.5.9 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li class="current"><a href="annotated.html"><span>Data Structures</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="annotated.html"><span>Data Structures</span></a></li> <li><a href="functions.html"><span>Data Fields</span></a></li> </ul> </div> </div> <div class="contents"> <h1>Sound_AudioInfo Struct Reference</h1><!-- doxytag: class="Sound_AudioInfo" -->Information about an existing sample's format. <a href="#_details">More...</a> <p> <code>#include <<a class="el" href="SDL__sound_8h_source.html">SDL_sound.h</a>></code> <p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Data Fields</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">Uint16 </td><td class="memItemRight" valign="bottom"><a class="el" href="structSound__AudioInfo.html#fc1f02fd774a0e1d35109360496390eb">format</a></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">Uint8 </td><td class="memItemRight" valign="bottom"><a class="el" href="structSound__AudioInfo.html#2a7fe880d009e698eb0d52cde3ddfc80">channels</a></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">Uint32 </td><td class="memItemRight" valign="bottom"><a class="el" href="structSound__AudioInfo.html#bc8310e37ae527e5d92e675655d944ee">rate</a></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> Information about an existing sample's format. <p> These are the basics of a decoded sample's data structure: data format (see AUDIO_U8 and friends in SDL_audio.h), number of channels, and sample rate. If you need more explanation than that, you should stop developing sound code right now.<p> <dl class="see" compact><dt><b>See also:</b></dt><dd>Sound_SampleNew <p> Sound_SampleNewFromFile </dd></dl> <hr><h2>Field Documentation</h2> <a class="anchor" name="2a7fe880d009e698eb0d52cde3ddfc80"></a><!-- doxytag: member="Sound_AudioInfo::channels" ref="2a7fe880d009e698eb0d52cde3ddfc80" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Uint8 <a class="el" href="structSound__AudioInfo.html#2a7fe880d009e698eb0d52cde3ddfc80">Sound_AudioInfo::channels</a> </td> </tr> </table> </div> <div class="memdoc"> <p> Number of sound channels. 1 == mono, 2 == stereo. </div> </div><p> <a class="anchor" name="fc1f02fd774a0e1d35109360496390eb"></a><!-- doxytag: member="Sound_AudioInfo::format" ref="fc1f02fd774a0e1d35109360496390eb" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Uint16 <a class="el" href="structSound__AudioInfo.html#fc1f02fd774a0e1d35109360496390eb">Sound_AudioInfo::format</a> </td> </tr> </table> </div> <div class="memdoc"> <p> Equivalent of SDL_AudioSpec.format. </div> </div><p> <a class="anchor" name="bc8310e37ae527e5d92e675655d944ee"></a><!-- doxytag: member="Sound_AudioInfo::rate" ref="bc8310e37ae527e5d92e675655d944ee" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Uint32 <a class="el" href="structSound__AudioInfo.html#bc8310e37ae527e5d92e675655d944ee">Sound_AudioInfo::rate</a> </td> </tr> </table> </div> <div class="memdoc"> <p> Sample rate; frequency of sample points per second. </div> </div><p> <hr>The documentation for this struct was generated from the following file:<ul> <li><a class="el" href="SDL__sound_8h_source.html">SDL_sound.h</a></ul> </div> <hr size="1"><address style="text-align: right;"><small>Generated on Thu Aug 20 13:53:21 2009 for SDL_sound by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address> </body> </html>