<aclass="SelectItem"href="javascript:void(0)"onclick="searchBox.OnSelectItem(0)"><spanclass="SelectionMark"> </span>Tout</a><aclass="SelectItem"href="javascript:void(0)"onclick="searchBox.OnSelectItem(1)"><spanclass="SelectionMark"> </span>Structures de données</a><aclass="SelectItem"href="javascript:void(0)"onclick="searchBox.OnSelectItem(2)"><spanclass="SelectionMark"> </span>Espaces de nommage</a><aclass="SelectItem"href="javascript:void(0)"onclick="searchBox.OnSelectItem(3)"><spanclass="SelectionMark"> </span>Fichiers</a><aclass="SelectItem"href="javascript:void(0)"onclick="searchBox.OnSelectItem(4)"><spanclass="SelectionMark"> </span>Fonctions</a><aclass="SelectItem"href="javascript:void(0)"onclick="searchBox.OnSelectItem(5)"><spanclass="SelectionMark"> </span>Variables</a><aclass="SelectItem"href="javascript:void(0)"onclick="searchBox.OnSelectItem(6)"><spanclass="SelectionMark"> </span>Définitions de type</a><aclass="SelectItem"href="javascript:void(0)"onclick="searchBox.OnSelectItem(7)"><spanclass="SelectionMark"> </span>Énumérations</a><aclass="SelectItem"href="javascript:void(0)"onclick="searchBox.OnSelectItem(8)"><spanclass="SelectionMark"> </span>Valeurs énumérées</a><aclass="SelectItem"href="javascript:void(0)"onclick="searchBox.OnSelectItem(9)"><spanclass="SelectionMark"> </span>Macros</a><aclass="SelectItem"href="javascript:void(0)"onclick="searchBox.OnSelectItem(10)"><spanclass="SelectionMark"> </span>Pages</a></div>
<ahref="fmod__codec_8h.html">Aller à la documentation de ce fichier.</a><divclass="fragment"><divclass="line"><aname="l00001"></a><spanclass="lineno"> 1</span> <spanclass="comment">/* ==================================================================================================== */</span></div>
<divclass="line"><aname="l00004"></a><spanclass="lineno"> 4</span> <spanclass="comment">/* Use this header if you are wanting to develop your own file format plugin to use with */</span></div>
<divclass="line"><aname="l00005"></a><spanclass="lineno"> 5</span> <spanclass="comment">/* FMOD's codec system. With this header you can make your own fileformat plugin that FMOD */</span></div>
<divclass="line"><aname="l00006"></a><spanclass="lineno"> 6</span> <spanclass="comment">/* can register and use. See the documentation and examples on how to make a working plugin. */</span></div>
<divclass="line"><aname="l00034"></a><spanclass="lineno"> 34</span> <spanclass="comment"> When creating a codec, declare one of these and provide the relevant callbacks and name for FMOD to use when it opens and reads a file.</span></div>
<divclass="line"><aname="l00037"></a><spanclass="lineno"> 37</span> <spanclass="comment"> Members marked with [in] mean the variable can be written to. The user can set the value.<br></span></div>
<divclass="line"><aname="l00038"></a><spanclass="lineno"> 38</span> <spanclass="comment"> Members marked with [out] mean the variable is modified by FMOD and is for reading purposes only. Do not change this value.<br></span></div>
<divclass="line"><aname="l00049"></a><spanclass="lineno"><aclass="line"href="struct_f_m_o_d___c_o_d_e_c___d_e_s_c_r_i_p_t_i_o_n.html#a8f8f80d37794cde9472343e4487ba3eb"> 49</a></span> <spanclass="keyword">const</span><spanclass="keywordtype">char</span> *<aclass="code"href="struct_f_m_o_d___c_o_d_e_c___d_e_s_c_r_i_p_t_i_o_n.html#a8f8f80d37794cde9472343e4487ba3eb">name</a>; <spanclass="comment">/* [in] Name of the codec. */</span></div>
<divclass="line"><aname="l00050"></a><spanclass="lineno"><aclass="line"href="struct_f_m_o_d___c_o_d_e_c___d_e_s_c_r_i_p_t_i_o_n.html#a5408ac5df4c170828874e1b10b4c35a0"> 50</a></span> <spanclass="keywordtype">unsigned</span><spanclass="keywordtype">int</span><aclass="code"href="struct_f_m_o_d___c_o_d_e_c___d_e_s_c_r_i_p_t_i_o_n.html#a5408ac5df4c170828874e1b10b4c35a0">version</a>; <spanclass="comment">/* [in] Plugin writer's version number. */</span></div>
<divclass="line"><aname="l00051"></a><spanclass="lineno"><aclass="line"href="struct_f_m_o_d___c_o_d_e_c___d_e_s_c_r_i_p_t_i_o_n.html#ab092907157bae9d4e18c8dcda651d948"> 51</a></span> <spanclass="keywordtype">int</span><aclass="code"href="struct_f_m_o_d___c_o_d_e_c___d_e_s_c_r_i_p_t_i_o_n.html#ab092907157bae9d4e18c8dcda651d948">defaultasstream</a>; <spanclass="comment">/* [in] Tells FMOD to open the file as a stream when calling System::createSound, and not a static sample. Should normally be 0 (FALSE), because generally the user wants to decode the file into memory when using System::createSound. Mainly used for formats that decode for a very long time, or could use large amounts of memory when decoded. Usually sequenced formats such as mod/s3m/xm/it/midi fall into this category. It is mainly to stop users that don't know what they're doing from getting FMOD_ERR_MEMORY returned from createSound when they should have in fact called System::createStream or used FMOD_CREATESTREAM in System::createSound. */</span></div>
<divclass="line"><aname="l00052"></a><spanclass="lineno"><aclass="line"href="struct_f_m_o_d___c_o_d_e_c___d_e_s_c_r_i_p_t_i_o_n.html#a0a941ece1600ece9aed0cad1cd1d2432"> 52</a></span> <aclass="code"href="fmod_8h.html#a9999089b44f00c72ba8e9a270a8d6349">FMOD_TIMEUNIT</a><aclass="code"href="struct_f_m_o_d___c_o_d_e_c___d_e_s_c_r_i_p_t_i_o_n.html#a0a941ece1600ece9aed0cad1cd1d2432">timeunits</a>; <spanclass="comment">/* [in] When setposition codec is called, only these time formats will be passed to the codec. Use bitwise OR to accumulate different types. */</span></div>
<divclass="line"><aname="l00053"></a><spanclass="lineno"><aclass="line"href="struct_f_m_o_d___c_o_d_e_c___d_e_s_c_r_i_p_t_i_o_n.html#ac7af5342bc97e57e013a5a452f74474a"> 53</a></span>  FMOD_CODEC_OPENCALLBACK <aclass="code"href="struct_f_m_o_d___c_o_d_e_c___d_e_s_c_r_i_p_t_i_o_n.html#ac7af5342bc97e57e013a5a452f74474a">open</a>; <spanclass="comment">/* [in] Open callback for the codec for when FMOD tries to open a sound using this codec. */</span></div>
<divclass="line"><aname="l00054"></a><spanclass="lineno"><aclass="line"href="struct_f_m_o_d___c_o_d_e_c___d_e_s_c_r_i_p_t_i_o_n.html#a5ad194de348ed14bfc6e621ef9b8a0e3"> 54</a></span>  FMOD_CODEC_CLOSECALLBACK <aclass="code"href="struct_f_m_o_d___c_o_d_e_c___d_e_s_c_r_i_p_t_i_o_n.html#a5ad194de348ed14bfc6e621ef9b8a0e3">close</a>; <spanclass="comment">/* [in] Close callback for the codec for when FMOD tries to close a sound using this codec. */</span></div>
<divclass="line"><aname="l00055"></a><spanclass="lineno"><aclass="line"href="struct_f_m_o_d___c_o_d_e_c___d_e_s_c_r_i_p_t_i_o_n.html#ad40b92bf70f3881227760e83aec4dacb"> 55</a></span>  FMOD_CODEC_READCALLBACK <aclass="code"href="struct_f_m_o_d___c_o_d_e_c___d_e_s_c_r_i_p_t_i_o_n.html#ad40b92bf70f3881227760e83aec4dacb">read</a>; <spanclass="comment">/* [in] Read callback for the codec for when FMOD tries to read some data from the file to the destination format (specified in the open callback). */</span></div>
<divclass="line"><aname="l00056"></a><spanclass="lineno"><aclass="line"href="struct_f_m_o_d___c_o_d_e_c___d_e_s_c_r_i_p_t_i_o_n.html#a4a1882e0c3e829b395fca1867a39e9d3"> 56</a></span>  FMOD_CODEC_GETLENGTHCALLBACK <aclass="code"href="struct_f_m_o_d___c_o_d_e_c___d_e_s_c_r_i_p_t_i_o_n.html#a4a1882e0c3e829b395fca1867a39e9d3">getlength</a>; <spanclass="comment">/* [in] Callback to return the length of the song in whatever format required when Sound::getLength is called. */</span></div>
<divclass="line"><aname="l00057"></a><spanclass="lineno"><aclass="line"href="struct_f_m_o_d___c_o_d_e_c___d_e_s_c_r_i_p_t_i_o_n.html#ad48f5f8b04a2fc1c5f3761e24555e8b4"> 57</a></span>  FMOD_CODEC_SETPOSITIONCALLBACK <aclass="code"href="struct_f_m_o_d___c_o_d_e_c___d_e_s_c_r_i_p_t_i_o_n.html#ad48f5f8b04a2fc1c5f3761e24555e8b4">setposition</a>; <spanclass="comment">/* [in] Seek callback for the codec for when FMOD tries to seek within the file with Channel::setPosition. */</span></div>
<divclass="line"><aname="l00058"></a><spanclass="lineno"><aclass="line"href="struct_f_m_o_d___c_o_d_e_c___d_e_s_c_r_i_p_t_i_o_n.html#a0bc7f276eb23bc479b6c992b281ecc30"> 58</a></span>  FMOD_CODEC_GETPOSITIONCALLBACK <aclass="code"href="struct_f_m_o_d___c_o_d_e_c___d_e_s_c_r_i_p_t_i_o_n.html#a0bc7f276eb23bc479b6c992b281ecc30">getposition</a>; <spanclass="comment">/* [in] Tell callback for the codec for when FMOD tries to get the current position within the with Channel::getPosition. */</span></div>
<divclass="line"><aname="l00059"></a><spanclass="lineno"><aclass="line"href="struct_f_m_o_d___c_o_d_e_c___d_e_s_c_r_i_p_t_i_o_n.html#a7c1169c2d2c7a1248ba7ec4db49c2830"> 59</a></span>  FMOD_CODEC_SOUNDCREATECALLBACK <aclass="code"href="struct_f_m_o_d___c_o_d_e_c___d_e_s_c_r_i_p_t_i_o_n.html#a7c1169c2d2c7a1248ba7ec4db49c2830">soundcreate</a>; <spanclass="comment">/* [in] Sound creation callback for the codec when FMOD finishes creating the sound. (So the codec can set more parameters for the related created sound, ie loop points/mode or 3D attributes etc). */</span></div>
<divclass="line"><aname="l00060"></a><spanclass="lineno"><aclass="line"href="struct_f_m_o_d___c_o_d_e_c___d_e_s_c_r_i_p_t_i_o_n.html#ad460152b43f39fa6d8783ca27786d511"> 60</a></span>  FMOD_CODEC_GETWAVEFORMAT <aclass="code"href="struct_f_m_o_d___c_o_d_e_c___d_e_s_c_r_i_p_t_i_o_n.html#ad460152b43f39fa6d8783ca27786d511">getwaveformat</a>; <spanclass="comment">/* [in] Callback to tell FMOD about the waveformat of a particular subsound. This is to save memory, rather than saving 1000 FMOD_CODEC_WAVEFORMAT structures in the codec, the codec might have a more optimal way of storing this information. */</span></div>
<divclass="line"><aname="l00068"></a><spanclass="lineno"> 68</span> <spanclass="comment"> Set these values marked 'in' to tell fmod what sort of sound to create.<br></span></div>
<divclass="line"><aname="l00069"></a><spanclass="lineno"> 69</span> <spanclass="comment"> The format, channels and frequency tell FMOD what sort of hardware buffer to create when you initialize your code. So if you wrote an MP3 codec that decoded to stereo 16bit integer PCM, you would specify FMOD_SOUND_FORMAT_PCM16, and channels would be equal to 2.<br></span></div>
<divclass="line"><aname="l00070"></a><spanclass="lineno"> 70</span> <spanclass="comment"> Members marked as 'out' are set by fmod. Do not modify these. Simply specify 0 for these values when declaring the structure, FMOD will fill in the values for you after creation with the correct function pointers.<br></span></div>
<divclass="line"><aname="l00073"></a><spanclass="lineno"> 73</span> <spanclass="comment"> Members marked with [in] mean the variable can be written to. The user can set the value.<br></span></div>
<divclass="line"><aname="l00074"></a><spanclass="lineno"> 74</span> <spanclass="comment"> Members marked with [out] mean the variable is modified by FMOD and is for reading purposes only. Do not change this value.<br></span></div>
<divclass="line"><aname="l00076"></a><spanclass="lineno"> 76</span> <spanclass="comment"> An FMOD file might be from disk, memory or network, however the file may be opened by the user.<br></span></div>
<divclass="line"><aname="l00078"></a><spanclass="lineno"> 78</span> <spanclass="comment">'numsubsounds' should be 0 if the file is a normal single sound stream or sound. Examples of this would be .WAV, .WMA, .MP3, .AIFF.<br></span></div>
<divclass="line"><aname="l00079"></a><spanclass="lineno"> 79</span> <spanclass="comment">'numsubsounds' should be 1+ if the file is a container format, and does not contain wav data itself. Examples of these types would be CDDA (multiple CD tracks), FSB (contains multiple sounds), MIDI/MOD/S3M/XM/IT (contain instruments).<br></span></div>
<divclass="line"><aname="l00080"></a><spanclass="lineno"> 80</span> <spanclass="comment"> The arrays of format, channel, frequency, length and blockalign should point to arrays of information based on how many subsounds are in the format. If the number of subsounds is 0 then it should point to 1 of each attribute, the same as if the number of subsounds was 1. If subsounds was 100 for example, each pointer should point to an array of 100 of each attribute.<br></span></div>
<divclass="line"><aname="l00081"></a><spanclass="lineno"> 81</span> <spanclass="comment"> When a sound has 1 or more subsounds, you must play the individual sounds specified by first obtaining the subsound with Sound::getSubSound.</span></div>
<divclass="line"><aname="l00097"></a><spanclass="lineno"><aclass="line"href="struct_f_m_o_d___c_o_d_e_c___w_a_v_e_f_o_r_m_a_t.html#a8e03167ce04350be901b028cc4cf1ce1"> 97</a></span> <spanclass="keywordtype">char</span><aclass="code"href="fmod__codec_8h.html#a5e2ffb0d63611b2d033c3a3c97d4a1cd">name</a>[256]; <spanclass="comment">/* [in] Name of sound.*/</span></div>
<divclass="line"><aname="l00098"></a><spanclass="lineno"><aclass="line"href="struct_f_m_o_d___c_o_d_e_c___w_a_v_e_f_o_r_m_a_t.html#a1fd3177bcf0250b19685d927857c9773"> 98</a></span> <aclass="code"href="fmod_8h.html#a6192ea5a963e6b24689b53e96a946833">FMOD_SOUND_FORMAT</a><aclass="code"href="struct_f_m_o_d___c_o_d_e_c___w_a_v_e_f_o_r_m_a_t.html#a1fd3177bcf0250b19685d927857c9773">format</a>; <spanclass="comment">/* [in] Format for (decompressed) codec output, ie FMOD_SOUND_FORMAT_PCM8, FMOD_SOUND_FORMAT_PCM16.*/</span></div>
<divclass="line"><aname="l00099"></a><spanclass="lineno"><aclass="line"href="struct_f_m_o_d___c_o_d_e_c___w_a_v_e_f_o_r_m_a_t.html#a178795099d0608972755dfef8d8367e3"> 99</a></span> <spanclass="keywordtype">int</span><aclass="code"href="struct_f_m_o_d___c_o_d_e_c___w_a_v_e_f_o_r_m_a_t.html#a178795099d0608972755dfef8d8367e3">channels</a>; <spanclass="comment">/* [in] Number of channels used by codec, ie mono = 1, stereo = 2. */</span></div>
<divclass="line"><aname="l00100"></a><spanclass="lineno"><aclass="line"href="struct_f_m_o_d___c_o_d_e_c___w_a_v_e_f_o_r_m_a_t.html#a0877761f00ee2460fe16820f9d52daf1"> 100</a></span> <spanclass="keywordtype">int</span><aclass="code"href="struct_f_m_o_d___c_o_d_e_c___w_a_v_e_f_o_r_m_a_t.html#a0877761f00ee2460fe16820f9d52daf1">frequency</a>; <spanclass="comment">/* [in] Default frequency in hz of the codec, ie 44100. */</span></div>
<divclass="line"><aname="l00101"></a><spanclass="lineno"><aclass="line"href="struct_f_m_o_d___c_o_d_e_c___w_a_v_e_f_o_r_m_a_t.html#a10ebf0d274594b89ddf88ac601b6b99e"> 101</a></span> <spanclass="keywordtype">unsigned</span><spanclass="keywordtype">int</span><aclass="code"href="struct_f_m_o_d___c_o_d_e_c___w_a_v_e_f_o_r_m_a_t.html#a10ebf0d274594b89ddf88ac601b6b99e">lengthbytes</a>; <spanclass="comment">/* [in] Length in bytes of the source data. */</span></div>
<divclass="line"><aname="l00102"></a><spanclass="lineno"><aclass="line"href="struct_f_m_o_d___c_o_d_e_c___w_a_v_e_f_o_r_m_a_t.html#ac1f81b22bdf8657e2bf12a8653a8ec24"> 102</a></span> <spanclass="keywordtype">unsigned</span><spanclass="keywordtype">int</span><aclass="code"href="struct_f_m_o_d___c_o_d_e_c___w_a_v_e_f_o_r_m_a_t.html#ac1f81b22bdf8657e2bf12a8653a8ec24">lengthpcm</a>; <spanclass="comment">/* [in] Length in decompressed, PCM samples of the file, ie length in seconds * frequency. Used for Sound::getLength and for memory allocation of static decompressed sample data. */</span></div>
<divclass="line"><aname="l00103"></a><spanclass="lineno"><aclass="line"href="struct_f_m_o_d___c_o_d_e_c___w_a_v_e_f_o_r_m_a_t.html#a34069c6026076785dc8f49681e8c41b8"> 103</a></span> <spanclass="keywordtype">int</span><aclass="code"href="struct_f_m_o_d___c_o_d_e_c___w_a_v_e_f_o_r_m_a_t.html#a34069c6026076785dc8f49681e8c41b8">blockalign</a>; <spanclass="comment">/* [in] Blockalign in decompressed, PCM samples of the optimal decode chunk size for this format. The codec read callback will be called in multiples of this value. */</span></div>
<divclass="line"><aname="l00104"></a><spanclass="lineno"><aclass="line"href="struct_f_m_o_d___c_o_d_e_c___w_a_v_e_f_o_r_m_a_t.html#ab21b7f1cecaf5570afef991d1d2d28e9"> 104</a></span> <spanclass="keywordtype">int</span><aclass="code"href="struct_f_m_o_d___c_o_d_e_c___w_a_v_e_f_o_r_m_a_t.html#ab21b7f1cecaf5570afef991d1d2d28e9">loopstart</a>; <spanclass="comment">/* [in] Loopstart in decompressed, PCM samples of file. */</span></div>
<divclass="line"><aname="l00105"></a><spanclass="lineno"><aclass="line"href="struct_f_m_o_d___c_o_d_e_c___w_a_v_e_f_o_r_m_a_t.html#aa7f7c5429cb754fc35aab12a784e2fa6"> 105</a></span> <spanclass="keywordtype">int</span><aclass="code"href="struct_f_m_o_d___c_o_d_e_c___w_a_v_e_f_o_r_m_a_t.html#aa7f7c5429cb754fc35aab12a784e2fa6">loopend</a>; <spanclass="comment">/* [in] Loopend in decompressed, PCM samples of file. */</span></div>
<divclass="line"><aname="l00106"></a><spanclass="lineno"><aclass="line"href="struct_f_m_o_d___c_o_d_e_c___w_a_v_e_f_o_r_m_a_t.html#a3fc0a92c8eb74350819183980dde83f3"> 106</a></span> <aclass="code"href="fmod_8h.html#ab817628375dd23c707108f7d9fd302ca">FMOD_MODE</a><aclass="code"href="struct_f_m_o_d___c_o_d_e_c___w_a_v_e_f_o_r_m_a_t.html#a3fc0a92c8eb74350819183980dde83f3">mode</a>; <spanclass="comment">/* [in] Mode to determine whether the sound should by default load as looping, non looping, 2d or 3d. */</span></div>
<divclass="line"><aname="l00107"></a><spanclass="lineno"><aclass="line"href="struct_f_m_o_d___c_o_d_e_c___w_a_v_e_f_o_r_m_a_t.html#a519e588d0f973feea17cd3a12495e755"> 107</a></span> <spanclass="keywordtype">unsigned</span><spanclass="keywordtype">int</span><aclass="code"href="struct_f_m_o_d___c_o_d_e_c___w_a_v_e_f_o_r_m_a_t.html#a519e588d0f973feea17cd3a12495e755">channelmask</a>; <spanclass="comment">/* [in] Microsoft speaker channel mask, as defined for WAVEFORMATEXTENSIBLE and is found in ksmedia.h. Leave at 0 to play in natural speaker order. */</span></div>
<divclass="line"><aname="l00115"></a><spanclass="lineno"> 115</span> <spanclass="comment"> Codec plugin structure that is passed into each callback.<br></span></div>
<divclass="line"><aname="l00117"></a><spanclass="lineno"> 117</span> <spanclass="comment"> Set these numsubsounds and waveformat members when called in FMOD_CODEC_OPENCALLBACK to tell fmod what sort of sound to create.<br></span></div>
<divclass="line"><aname="l00119"></a><spanclass="lineno"> 119</span> <spanclass="comment"> The format, channels and frequency tell FMOD what sort of hardware buffer to create when you initialize your code. So if you wrote an MP3 codec that decoded to stereo 16bit integer PCM, you would specify FMOD_SOUND_FORMAT_PCM16, and channels would be equal to 2.<br></span></div>
<divclass="line"><aname="l00122"></a><spanclass="lineno"> 122</span> <spanclass="comment"> Members marked with [in] mean the variable can be written to. The user can set the value.<br></span></div>
<divclass="line"><aname="l00123"></a><spanclass="lineno"> 123</span> <spanclass="comment"> Members marked with [out] mean the variable is modified by FMOD and is for reading purposes only. Do not change this value.<br></span></div>
<divclass="line"><aname="l00125"></a><spanclass="lineno"> 125</span> <spanclass="comment"> An FMOD file might be from disk, memory or internet, however the file may be opened by the user.<br></span></div>
<divclass="line"><aname="l00127"></a><spanclass="lineno"> 127</span> <spanclass="comment">'numsubsounds' should be 0 if the file is a normal single sound stream or sound. Examples of this would be .WAV, .WMA, .MP3, .AIFF.<br></span></div>
<divclass="line"><aname="l00128"></a><spanclass="lineno"> 128</span> <spanclass="comment">'numsubsounds' should be 1+ if the file is a container format, and does not contain wav data itself. Examples of these types would be CDDA (multiple CD tracks), FSB (contains multiple sounds), DLS (contain instruments).<br></span></div>
<divclass="line"><aname="l00129"></a><spanclass="lineno"> 129</span> <spanclass="comment"> The arrays of format, channel, frequency, length and blockalign should point to arrays of information based on how many subsounds are in the format. If the number of subsounds is 0 then it should point to 1 of each attribute, the same as if the number of subsounds was 1. If subsounds was 100 for example, each pointer should point to an array of 100 of each attribute.<br></span></div>
<divclass="line"><aname="l00130"></a><spanclass="lineno"> 130</span> <spanclass="comment"> When a sound has 1 or more subsounds, you must play the individual sounds specified by first obtaining the subsound with Sound::getSubSound.</span></div>
<divclass="line"><aname="l00146"></a><spanclass="lineno"><aclass="line"href="struct_f_m_o_d___c_o_d_e_c___s_t_a_t_e.html#a3d5b17b9a6686e54701f791ea6918412"> 146</a></span> <spanclass="keywordtype">int</span><aclass="code"href="struct_f_m_o_d___c_o_d_e_c___s_t_a_t_e.html#a3d5b17b9a6686e54701f791ea6918412">numsubsounds</a>; <spanclass="comment">/* [in] Number of 'subsounds' in this sound. Anything other than 0 makes it a 'container' format (ie CDDA/DLS/FSB etc which contain 1 or more su bsounds). For most normal, single sound codec such as WAV/AIFF/MP3, this should be 0 as they are not a container for subsounds, they are the sound by itself. */</span></div>
<divclass="line"><aname="l00147"></a><spanclass="lineno"><aclass="line"href="struct_f_m_o_d___c_o_d_e_c___s_t_a_t_e.html#a1e65c7bce613de69f7b782fbffbaea5d"> 147</a></span> <aclass="code"href="struct_f_m_o_d___c_o_d_e_c___w_a_v_e_f_o_r_m_a_t.html">FMOD_CODEC_WAVEFORMAT</a> *<aclass="code"href="struct_f_m_o_d___c_o_d_e_c___s_t_a_t_e.html#a1e65c7bce613de69f7b782fbffbaea5d">waveformat</a>; <spanclass="comment">/* [in] Pointer to an array of format structures containing information about each sample. Can be 0 or NULL if FMOD_CODEC_GETWAVEFORMAT callback is preferred. The number of entries here must equal the number of subsounds defined in the subsound parameter. If numsubsounds = 0 then there should be 1 instance of this structure. */</span></div>
<divclass="line"><aname="l00148"></a><spanclass="lineno"><aclass="line"href="struct_f_m_o_d___c_o_d_e_c___s_t_a_t_e.html#abf37c5e4c79ceff65a72e07b2873272e"> 148</a></span> <spanclass="keywordtype">void</span> *<aclass="code"href="struct_f_m_o_d___c_o_d_e_c___s_t_a_t_e.html#abf37c5e4c79ceff65a72e07b2873272e">plugindata</a>; <spanclass="comment">/* [in] Plugin writer created data the codec author wants to attach to this object. */</span></div>
<divclass="line"><aname="l00150"></a><spanclass="lineno"><aclass="line"href="struct_f_m_o_d___c_o_d_e_c___s_t_a_t_e.html#ae930b2acb09a0f4313a23422fa59e7ff"> 150</a></span> <spanclass="keywordtype">void</span> *<aclass="code"href="struct_f_m_o_d___c_o_d_e_c___s_t_a_t_e.html#ae930b2acb09a0f4313a23422fa59e7ff">filehandle</a>; <spanclass="comment">/* [out] This will return an internal FMOD file handle to use with the callbacks provided. */</span></div>
<divclass="line"><aname="l00151"></a><spanclass="lineno"><aclass="line"href="struct_f_m_o_d___c_o_d_e_c___s_t_a_t_e.html#a613e2963514a5e256a448f708c1af880"> 151</a></span> <spanclass="keywordtype">unsigned</span><spanclass="keywordtype">int</span><aclass="code"href="struct_f_m_o_d___c_o_d_e_c___s_t_a_t_e.html#a613e2963514a5e256a448f708c1af880">filesize</a>; <spanclass="comment">/* [out] This will contain the size of the file in bytes. */</span></div>
<divclass="line"><aname="l00152"></a><spanclass="lineno"><aclass="line"href="struct_f_m_o_d___c_o_d_e_c___s_t_a_t_e.html#aa7c421e3a93b0def58927d3a899dbfdf"> 152</a></span>  FMOD_FILE_READCALLBACK <aclass="code"href="struct_f_m_o_d___c_o_d_e_c___s_t_a_t_e.html#aa7c421e3a93b0def58927d3a899dbfdf">fileread</a>; <spanclass="comment">/* [out] This will return a callable FMOD file function to use from codec. */</span></div>
<divclass="line"><aname="l00153"></a><spanclass="lineno"><aclass="line"href="struct_f_m_o_d___c_o_d_e_c___s_t_a_t_e.html#ac5cb7d93f227bf0a77deb5dc6310c3fd"> 153</a></span>  FMOD_FILE_SEEKCALLBACK <aclass="code"href="struct_f_m_o_d___c_o_d_e_c___s_t_a_t_e.html#ac5cb7d93f227bf0a77deb5dc6310c3fd">fileseek</a>; <spanclass="comment">/* [out] This will return a callable FMOD file function to use from codec. */</span></div>
<divclass="line"><aname="l00154"></a><spanclass="lineno"><aclass="line"href="struct_f_m_o_d___c_o_d_e_c___s_t_a_t_e.html#a24379a2c38290567e9e18518b1f631f9"> 154</a></span>  FMOD_CODEC_METADATACALLBACK <aclass="code"href="struct_f_m_o_d___c_o_d_e_c___s_t_a_t_e.html#a24379a2c38290567e9e18518b1f631f9">metadata</a>; <spanclass="comment">/* [out] This will return a callable FMOD metadata function to use from codec. */</span></div>
<divclass="ttc"id="struct_f_m_o_d___c_o_d_e_c___d_e_s_c_r_i_p_t_i_o_n_html_a5408ac5df4c170828874e1b10b4c35a0"><divclass="ttname"><ahref="struct_f_m_o_d___c_o_d_e_c___d_e_s_c_r_i_p_t_i_o_n.html#a5408ac5df4c170828874e1b10b4c35a0">FMOD_CODEC_DESCRIPTION::version</a></div><divclass="ttdeci">unsigned int version</div><divclass="ttdef"><b>Definition:</b><ahref="fmod__codec_8h_source.html#l00050">fmod_codec.h:50</a></div></div>
<divclass="ttc"id="fmod__codec_8h_html_aa8bfff580fa20b889fa96672647abf08"><divclass="ttname"><ahref="fmod__codec_8h.html#aa8bfff580fa20b889fa96672647abf08">sizebytes</a></div><divclass="ttdeci">void unsigned int sizebytes</div><divclass="ttdef"><b>Definition:</b><ahref="fmod__codec_8h_source.html#l00021">fmod_codec.h:21</a></div></div>
<divclass="ttc"id="fmod__codec_8h_html_aa4fdc1c88e52acff3d3f089de959b9dd"><divclass="ttname"><ahref="fmod__codec_8h.html#aa4fdc1c88e52acff3d3f089de959b9dd">datalen</a></div><divclass="ttdeci">FMOD_TAGTYPE char void unsigned int datalen</div><divclass="ttdef"><b>Definition:</b><ahref="fmod__codec_8h_source.html#l00026">fmod_codec.h:26</a></div></div>
<divclass="ttc"id="struct_f_m_o_d___c_o_d_e_c___w_a_v_e_f_o_r_m_a_t_html_a519e588d0f973feea17cd3a12495e755"><divclass="ttname"><ahref="struct_f_m_o_d___c_o_d_e_c___w_a_v_e_f_o_r_m_a_t.html#a519e588d0f973feea17cd3a12495e755">FMOD_CODEC_WAVEFORMAT::channelmask</a></div><divclass="ttdeci">unsigned int channelmask</div><divclass="ttdef"><b>Definition:</b><ahref="fmod__codec_8h_source.html#l00107">fmod_codec.h:107</a></div></div>
<divclass="ttc"id="fmod__codec_8h_html_a489e20056c2b14d4520b0d31e1ea52a0"><divclass="ttname"><ahref="fmod__codec_8h.html#a489e20056c2b14d4520b0d31e1ea52a0">bytesread</a></div><divclass="ttdeci">void unsigned int unsigned int * bytesread</div><divclass="ttdef"><b>Definition:</b><ahref="fmod__codec_8h_source.html#l00021">fmod_codec.h:21</a></div></div>
<divclass="ttc"id="fmod__codec_8h_html_aefdf077cd7271e4a819f5275a2b98e68"><divclass="ttname"><ahref="fmod__codec_8h.html#aefdf077cd7271e4a819f5275a2b98e68">unique</a></div><divclass="ttdeci">FMOD_TAGTYPE char void unsigned int FMOD_TAGDATATYPE int unique</div><divclass="ttdef"><b>Definition:</b><ahref="fmod__codec_8h_source.html#l00026">fmod_codec.h:26</a></div></div>
<divclass="ttc"id="struct_f_m_o_d___c_o_d_e_c___w_a_v_e_f_o_r_m_a_t_html_a10ebf0d274594b89ddf88ac601b6b99e"><divclass="ttname"><ahref="struct_f_m_o_d___c_o_d_e_c___w_a_v_e_f_o_r_m_a_t.html#a10ebf0d274594b89ddf88ac601b6b99e">FMOD_CODEC_WAVEFORMAT::lengthbytes</a></div><divclass="ttdeci">unsigned int lengthbytes</div><divclass="ttdef"><b>Definition:</b><ahref="fmod__codec_8h_source.html#l00101">fmod_codec.h:101</a></div></div>
<divclass="ttc"id="fmod__codec_8h_html_a7d71cf36b6a2fc185ecbc89f93fa58a3"><divclass="ttname"><ahref="fmod__codec_8h.html#a7d71cf36b6a2fc185ecbc89f93fa58a3">position</a></div><divclass="ttdeci">int unsigned int position</div><divclass="ttdef"><b>Definition:</b><ahref="fmod__codec_8h_source.html#l00023">fmod_codec.h:23</a></div></div>
<divclass="ttc"id="fmod__codec_8h_html_afb73aa9ab0818133a25040abf0c9cecf"><divclass="ttname"><ahref="fmod__codec_8h.html#afb73aa9ab0818133a25040abf0c9cecf">postype</a></div><divclass="ttdeci">int unsigned int FMOD_TIMEUNIT postype</div><divclass="ttdef"><b>Definition:</b><ahref="fmod__codec_8h_source.html#l00023">fmod_codec.h:23</a></div></div>
<divclass="ttc"id="struct_f_m_o_d___c_o_d_e_c___w_a_v_e_f_o_r_m_a_t_html_ac1f81b22bdf8657e2bf12a8653a8ec24"><divclass="ttname"><ahref="struct_f_m_o_d___c_o_d_e_c___w_a_v_e_f_o_r_m_a_t.html#ac1f81b22bdf8657e2bf12a8653a8ec24">FMOD_CODEC_WAVEFORMAT::lengthpcm</a></div><divclass="ttdeci">unsigned int lengthpcm</div><divclass="ttdef"><b>Definition:</b><ahref="fmod__codec_8h_source.html#l00102">fmod_codec.h:102</a></div></div>
<divclass="ttc"id="struct_f_m_o_d___c_o_d_e_c___s_t_a_t_e_html_a613e2963514a5e256a448f708c1af880"><divclass="ttname"><ahref="struct_f_m_o_d___c_o_d_e_c___s_t_a_t_e.html#a613e2963514a5e256a448f708c1af880">FMOD_CODEC_STATE::filesize</a></div><divclass="ttdeci">unsigned int filesize</div><divclass="ttdef"><b>Definition:</b><ahref="fmod__codec_8h_source.html#l00151">fmod_codec.h:151</a></div></div>
<divclass="ttc"id="fmod_8h_html_ab817628375dd23c707108f7d9fd302ca"><divclass="ttname"><ahref="fmod_8h.html#ab817628375dd23c707108f7d9fd302ca">FMOD_MODE</a></div><divclass="ttdeci">unsigned int FMOD_MODE</div><divclass="ttdef"><b>Definition:</b><ahref="fmod_8h_source.html#l00075">fmod.h:75</a></div></div>
<divclass="ttc"id="fmod_8h_html_a9999089b44f00c72ba8e9a270a8d6349"><divclass="ttname"><ahref="fmod_8h.html#a9999089b44f00c72ba8e9a270a8d6349">FMOD_TIMEUNIT</a></div><divclass="ttdeci">unsigned int FMOD_TIMEUNIT</div><divclass="ttdef"><b>Definition:</b><ahref="fmod_8h_source.html#l00076">fmod.h:76</a></div></div>
<divclass="ttc"id="fmod__codec_8h_html_a261972fd3749c09d3ffef026aa74fe67"><divclass="ttname"><ahref="fmod__codec_8h.html#a261972fd3749c09d3ffef026aa74fe67">lengthtype</a></div><divclass="ttdeci">unsigned int FMOD_TIMEUNIT lengthtype</div><divclass="ttdef"><b>Definition:</b><ahref="fmod__codec_8h_source.html#l00022">fmod_codec.h:22</a></div></div>
<divclass="ttc"id="fmod__codec_8h_html_a5bd98a35333cb58781d316f76ca8a75f"><divclass="ttname"><ahref="fmod__codec_8h.html#a5bd98a35333cb58781d316f76ca8a75f">length</a></div><divclass="ttdeci">unsigned int * length</div><divclass="ttdef"><b>Definition:</b><ahref="fmod__codec_8h_source.html#l00022">fmod_codec.h:22</a></div></div>