<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>libmpdclient: mpd_audio_format 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.6.3 --> <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>Classes</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>Class List</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> </div> <div class="contents"> <h1>mpd_audio_format Struct Reference</h1><!-- doxytag: class="mpd_audio_format" --> <p><code>#include <<a class="el" href="audio__format_8h_source.html">audio_format.h</a>></code></p> <p><a href="structmpd__audio__format-members.html">List of all members.</a></p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td colspan="2"><h2>Public Attributes</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">uint32_t </td><td class="memItemRight" valign="bottom"><a class="el" href="structmpd__audio__format.html#a95bdbe12a6821e8a2672081440bd0570">sample_rate</a></td></tr> <tr><td class="memItemLeft" align="right" valign="top">uint8_t </td><td class="memItemRight" valign="bottom"><a class="el" href="structmpd__audio__format.html#ae08b55cecd05a9006a1fa2f732c2c9a5">bits</a></td></tr> <tr><td class="memItemLeft" align="right" valign="top">uint8_t </td><td class="memItemRight" valign="bottom"><a class="el" href="structmpd__audio__format.html#a64d989790b0ad578cba5b4ec45425f41">channels</a></td></tr> <tr><td class="memItemLeft" align="right" valign="top">uint16_t </td><td class="memItemRight" valign="bottom"><a class="el" href="structmpd__audio__format.html#a5a1ff14f48b3b179eeae77d8a3fd9c34">reserved0</a></td></tr> <tr><td class="memItemLeft" align="right" valign="top">uint32_t </td><td class="memItemRight" valign="bottom"><a class="el" href="structmpd__audio__format.html#ada92b3656020164e42e9ce9eb6d1fa95">reserved1</a></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p>This structure describes the format of a raw PCM stream. </p> <p>Definition at line <a class="el" href="audio__format_8h_source.html#l00043">43</a> of file <a class="el" href="audio__format_8h_source.html">audio_format.h</a>.</p> <hr/><h2>Member Data Documentation</h2> <a class="anchor" id="ae08b55cecd05a9006a1fa2f732c2c9a5"></a><!-- doxytag: member="mpd_audio_format::bits" ref="ae08b55cecd05a9006a1fa2f732c2c9a5" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint8_t <a class="el" href="structmpd__audio__format.html#ae08b55cecd05a9006a1fa2f732c2c9a5">mpd_audio_format::bits</a></td> </tr> </table> </div> <div class="memdoc"> <p>The number of significant bits per sample. Samples are currently always signed. Supported values are 8, 16, 24, 32. 24 bit samples are packed in 32 bit integers. </p> <p>Definition at line <a class="el" href="audio__format_8h_source.html#l00056">56</a> of file <a class="el" href="audio__format_8h_source.html">audio_format.h</a>.</p> </div> </div> <a class="anchor" id="a64d989790b0ad578cba5b4ec45425f41"></a><!-- doxytag: member="mpd_audio_format::channels" ref="a64d989790b0ad578cba5b4ec45425f41" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint8_t <a class="el" href="structmpd__audio__format.html#a64d989790b0ad578cba5b4ec45425f41">mpd_audio_format::channels</a></td> </tr> </table> </div> <div class="memdoc"> <p>The number of channels. Only mono (1) and stereo (2) are fully supported currently. </p> <p>Definition at line <a class="el" href="audio__format_8h_source.html#l00062">62</a> of file <a class="el" href="audio__format_8h_source.html">audio_format.h</a>.</p> </div> </div> <a class="anchor" id="a5a1ff14f48b3b179eeae77d8a3fd9c34"></a><!-- doxytag: member="mpd_audio_format::reserved0" ref="a5a1ff14f48b3b179eeae77d8a3fd9c34" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint16_t <a class="el" href="structmpd__audio__format.html#a5a1ff14f48b3b179eeae77d8a3fd9c34">mpd_audio_format::reserved0</a></td> </tr> </table> </div> <div class="memdoc"> <p>reserved for future use </p> <p>Definition at line <a class="el" href="audio__format_8h_source.html#l00065">65</a> of file <a class="el" href="audio__format_8h_source.html">audio_format.h</a>.</p> </div> </div> <a class="anchor" id="ada92b3656020164e42e9ce9eb6d1fa95"></a><!-- doxytag: member="mpd_audio_format::reserved1" ref="ada92b3656020164e42e9ce9eb6d1fa95" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint32_t <a class="el" href="structmpd__audio__format.html#ada92b3656020164e42e9ce9eb6d1fa95">mpd_audio_format::reserved1</a></td> </tr> </table> </div> <div class="memdoc"> <p>reserved for future use </p> <p>Definition at line <a class="el" href="audio__format_8h_source.html#l00068">68</a> of file <a class="el" href="audio__format_8h_source.html">audio_format.h</a>.</p> </div> </div> <a class="anchor" id="a95bdbe12a6821e8a2672081440bd0570"></a><!-- doxytag: member="mpd_audio_format::sample_rate" ref="a95bdbe12a6821e8a2672081440bd0570" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint32_t <a class="el" href="structmpd__audio__format.html#a95bdbe12a6821e8a2672081440bd0570">mpd_audio_format::sample_rate</a></td> </tr> </table> </div> <div class="memdoc"> <p>The sample rate in Hz. A better name for this attribute is "frame rate", because technically, you have two samples per frame in stereo sound. </p> <p>Definition at line <a class="el" href="audio__format_8h_source.html#l00049">49</a> of file <a class="el" href="audio__format_8h_source.html">audio_format.h</a>.</p> </div> </div> <hr/>The documentation for this struct was generated from the following file:<ul> <li>mpd/<a class="el" href="audio__format_8h_source.html">audio_format.h</a></li> </ul> </div> <hr class="footer"/><address style="text-align: right;"><small>Generated on Sun Aug 8 15:52:36 2010 for libmpdclient by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address> </body> </html>