📄 windows环境下的麦克风录音系统(6).htm
字号:
· <a href=/article/5/11/2006/200608301360.html title='Google排名—搜索引擎登记技巧'>Google排名—搜索引..</a><br>
· <font color='#0066FF'>[图文]</font> <a href=/article/10/2006/200608291188.html title='菜鸟安全防患之饿死木马'>菜鸟安全防患..</a><br>
· <a href=/article/9/2006/20060827361.html title='数学最大数字'>数学最大数字</a><br>
· <a href=/article/10/2006/200608291195.html title='Google搜索技巧(6):用Google找自己'>Google搜索技巧(6):..</a><br></td>
</tr>
<tr>
<td height="2" bgcolor="#FFFFFF"></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="titleback1">相关文章</td>
</tr>
<tr>
<td height="100" valign="top">· <font color='#0066FF'>[图文]</font> <a href="/article/1/14/2006/2006092518433.html" title='Windows环境下的麦克风录音系统(5)'>Windows环境下..</a><br>
· <a href="/article/1/14/2006/2006092518432.html" title='Windows环境下的麦克风录音系统(7)'>Windows环境下的麦克..</a><br>
· <a href="/article/1/14/2006/2006092518429.html" title='Windows环境下的麦克风录音系统(2)'>Windows环境下的麦克..</a><br>
· <font color='#0066FF'>[图文]</font> <a href="/article/1/14/2006/2006092518423.html" title='Windows环境下的麦克风录音系统(1)'>Windows环境下..</a><br>
· <font color='#0066FF'>[图文]</font> <a href="/article/1/14/2006/2006092518422.html" title='Windows环境下的麦克风录音系统(3)'>Windows环境下..</a><br>
· <font color='#0066FF'>[图文]</font> <a href="/article/1/14/2006/2006092518413.html" title='Windows环境下的麦克风录音系统'>Windows环境下..</a><br>
· <font color='#0066FF'>[图文]</font> <a href="/article/1/14/2006/2006092518411.html" title='Windows环境下的麦克风录音系统(4)'>Windows环境下..</a><br>
· <font color='#0066FF'>[图文]</font> <a href="/article/1/14/2006/2006092518390.html" title='在 Borland C++BuilderX for Windows 中进行 GTK+ 编程'>在 Borland C..</a><br>
· <a href="/article/1/14/2006/2006092518362.html" title='C++ Builder X里的Build Configuration和Preview包wxWindows编译环境设定'>C++ Builder X里的B..</a><br>
· <a href="/article/1/14/2006/2006092518355.html" title='《数据结构的C++伪码实现》(《DATA STRUCTURES A Pseudocode Approach with C++》)读书笔记(三)'>《数据结构的C++伪码..</a><br></td>
</tr>
</table>
</td>
<td width="588" align="right" class="tableright">
<table width="575" border="0" cellpadding="0" cellspacing="0" style="table-layout:fixed;word-break:break-all">
<tr>
<td align="center" height=32 style="font-size: 12pt;color: #FF6600;">Windows环境下的麦克风录音系统(6)</td>
</tr>
<tr>
<td align="center" height=25 bgcolor=#F7F7F7>作者:佚名 来源:不详 发布时间:25/09/2006 19:45:35 发布人:admin</td>
</tr>
<script language=javascript>
var newasp_fontsize=9;
var newasp_lineheight=12;
</script>
<tr>
<td><p align="right"><a style="CURSOR: hand; POSITION: relative" onclick="if(newasp_fontsize>8){NewaspContentLabel.style.fontSize=(--newasp_fontsize)+"pt";NewaspContentLabel.style.lineHeight=(--newasp_lineheight)+"pt";}" title="减小字体"><img src="/images/1.gif" border="0" width="15" height="15"><font color="#FF6600">减小字体</font></a>
<a style="CURSOR: hand; POSITION: relative" onclick="if(newasp_fontsize<64){NewaspContentLabel.style.fontSize=(++newasp_fontsize)+"pt";NewaspContentLabel.style.lineHeight=(++newasp_lineheight)+"pt";}" title="增大字体"><img src="/images/2.gif" border="0" width="15" height="15"><font color="#FF6600">增大字体</font></a>
</p>
<div id="NewaspContentLabel" style="display:block;padding:0px 10px;" class="ContentFont"><FONT id=font_word style="FONT-SIZE: 14px; FONT-FAMILY: 宋体, Verdana, Arial, Helvetica, sans-serif"><P><SPAN lang=ZH-CN style="FONT-SIZE: 22pt; FONT-FAMILY: 黑体; mso-bidi-font-size: 12.0pt; mso-bidi-font-family: ''''Times New Roman''''; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA; mso-hansi-font-family: ''''Times New Roman''''"><SPAN style="FONT-SIZE: 16pt; FONT-FAMILY: 黑体; mso-bidi-font-size: 12.0pt; mso-fareast-language: ZH-CN"><SPAN style="mso-spacerun: yes"><SPAN lang=ZH-CN style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt; mso-fareast-language: ZH-CN">对于录音来说最重要的就是</SPAN><SPAN style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt; mso-fareast-language: ZH-CN">CSoundIn<SPAN lang=ZH-CN>类</SPAN>,<SPAN lang=ZH-CN>下面就是该类的定义</SPAN>:</SPAN></SPAN></SPAN></SPAN></P><P><SPAN lang=ZH-CN style="FONT-SIZE: 22pt; FONT-FAMILY: 黑体; mso-bidi-font-size: 12.0pt; mso-bidi-font-family: ''''Times New Roman''''; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA; mso-hansi-font-family: ''''Times New Roman''''"><SPAN style="FONT-SIZE: 16pt; FONT-FAMILY: 黑体; mso-bidi-font-size: 12.0pt; mso-fareast-language: ZH-CN"><SPAN style="mso-spacerun: yes"><SPAN style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt; mso-fareast-language: ZH-CN"></SPAN><FONT face="Times New Roman"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''">namespace</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"> </SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: blue; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''">perdubug</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"> {<SPAN style="mso-spacerun: yes"> </SPAN></SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: #009900; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''">// prevent the name-space pollution</SPAN></FONT><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><FONT face="Times New Roman"> <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></FONT></SPAN></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><FONT face="Times New Roman"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''">class</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"> CSoundIn<SPAN style="mso-spacerun: yes"> </SPAN><o:p></o:p></SPAN></FONT></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><FONT face="Times New Roman">{<o:p></o:p></FONT></SPAN></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><FONT face="Times New Roman"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''">public</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''">:<SPAN style="mso-tab-count: 1"> </SPAN><o:p></o:p></SPAN></FONT></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><FONT face="Times New Roman"><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><SPAN style="mso-tab-count: 1"> </SPAN>BOOL<SPAN style="mso-spacerun: yes"> </SPAN>__initMic(); </SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: #009900; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''">// get the best wave format supported by your sound card</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><o:p></o:p></SPAN></FONT></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><FONT face="Times New Roman"><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><SPAN style="mso-tab-count: 1"> </SPAN><SPAN style="mso-spacerun: yes"> </SPAN><SPAN style="mso-spacerun: yes"> </SPAN></SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: #009900; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''">// and then i will use the format to capture sound.</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><o:p></o:p></SPAN></FONT></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><FONT face="Times New Roman"> <o:p></o:p></FONT></SPAN></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><FONT face="Times New Roman"><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><SPAN style="mso-tab-count: 1"> </SPAN></SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: blue; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''">void</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><SPAN style="mso-spacerun: yes"> </SPAN>__closeMic();<o:p></o:p></SPAN></FONT></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><FONT face="Times New Roman"> <o:p></o:p></FONT></SPAN></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><FONT face="Times New Roman"><SPAN style="mso-tab-count: 1"> </SPAN><o:p></o:p></FONT></SPAN></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><FONT face="Times New Roman"><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><SPAN style="mso-tab-count: 1"> </SPAN>BOOL<SPAN style="mso-spacerun: yes"> </SPAN>__openMic(); </SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: #009900; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''">// open device and begin to capture with the best format(when </SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><o:p></o:p></SPAN></FONT></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><FONT face="Times New Roman"><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><SPAN style="mso-tab-count: 1"> </SPAN><SPAN style="mso-spacerun: yes"> </SPAN></SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: #009900; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''">// invoke __initMic function then you will get the best format</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><o:p></o:p></SPAN></FONT></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><FONT face="Times New Roman"><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><SPAN style="mso-tab-count: 1"> </SPAN><SPAN style="mso-spacerun: yes"> </SPAN></SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: #009900; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''">// supported by host''''s sound card</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><o:p></o:p></SPAN></FONT></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><FONT face="Times New Roman"><SPAN style="mso-tab-count: 1"> </SPAN><o:p></o:p></FONT></SPAN></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><FONT face="Times New Roman"><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><SPAN style="mso-tab-count: 1"> </SPAN></SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: #009900; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''">//</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><o:p></o:p></SPAN></FONT></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><FONT face="Times New Roman"><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><SPAN style="mso-tab-count: 1"> </SPAN></SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: #009900; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''">// if your want to capture sound and export into a wav file please invoke this function</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><o:p></o:p></SPAN></FONT></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><FONT face="Times New Roman"><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><SPAN style="mso-tab-count: 1"> </SPAN></SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: #009900; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''">// to tell me the full path then i will create the wav file.</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><o:p></o:p></SPAN></FONT></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><FONT face="Times New Roman"><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><SPAN style="mso-tab-count: 1"> </SPAN></SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: #009900; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''">//</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><o:p></o:p></SPAN></FONT></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><FONT face="Times New Roman"><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><SPAN style="mso-tab-count: 1"> </SPAN></SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: blue; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''">void</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><SPAN style="mso-spacerun: yes"> </SPAN>__createOutputWaveFile(</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: blue; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''">const</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"> TCHAR * lpszFileName);<o:p></o:p></SPAN></FONT></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><FONT face="Times New Roman"><SPAN style="mso-tab-count: 1"> </SPAN><o:p></o:p></FONT></SPAN></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><FONT face="Times New Roman"><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><SPAN style="mso-tab-count: 1"> </SPAN></SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: #009900; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''">// if you invoke any member function return error/false please</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><o:p></o:p></SPAN></FONT></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><FONT face="Times New Roman"><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><SPAN style="mso-tab-count: 1"> </SPAN></SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: #009900; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''">// use this function to get the result...</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><o:p></o:p></SPAN></FONT></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><FONT face="Times New Roman"><SPAN style="mso-tab-count: 1"> </SPAN>DWORD<SPAN style="mso-spacerun: yes"> </SPAN>__getLastError();<o:p></o:p></FONT></SPAN></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><FONT face="Times New Roman"> <o:p></o:p></FONT></SPAN></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><FONT face="Times New Roman"><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><SPAN style="mso-tab-count: 1"> </SPAN></SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: #009900; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''">//</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><o:p></o:p></SPAN></FONT></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><FONT face="Times New Roman"><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><SPAN style="mso-tab-count: 1"> </SPAN></SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: #009900; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''">// when the capture buffer is filled please invoke this function to ''''add buffer''''(Actually</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><o:p></o:p></SPAN></FONT></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><FONT face="Times New Roman"><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><SPAN style="mso-tab-count: 1"> </SPAN></SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: #009900; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''">// you should create two-circular buffers,when 1st buffer is filled then switch to 2st,1st</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><o:p></o:p></SPAN></FONT></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><FONT face="Times New Roman"><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><SPAN style="mso-tab-count: 1"> </SPAN></SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: #009900; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''">// buffer will be wrote into wav file.</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><o:p></o:p></SPAN></FONT></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><FONT face="Times New Roman"><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><SPAN style="mso-tab-count: 1"> </SPAN></SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: #009900; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''">//</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><o:p></o:p></SPAN></FONT></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><FONT face="Times New Roman"><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><SPAN style="mso-tab-count: 1"> </SPAN></SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: blue; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''">void</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"> AddBuffer();<o:p></o:p></SPAN></FONT></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><FONT face="Times New Roman"><SPAN style="mso-tab-count: 1"> </SPAN><o:p></o:p></FONT></SPAN></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><FONT face="Times New Roman"><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><SPAN style="mso-tab-count: 1"> </SPAN></SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: blue; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''">virtual</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"> ~CSoundIn();<o:p></o:p></SPAN></FONT></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><FONT face="Times New Roman"><SPAN style="mso-tab-count: 1"> </SPAN><o:p></o:p></FONT></SPAN></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><FONT face="Times New Roman"><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><SPAN style="mso-tab-count: 1"> </SPAN></SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: blue; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''">friend</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"> CSoundIn & theSoundCapture();<o:p></o:p></SPAN></FONT></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><FONT face="Times New Roman"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''">private</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''">:<o:p></o:p></SPAN></FONT></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><FONT face="Times New Roman"> <o:p></o:p></FONT></SPAN></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><FONT face="Times New Roman"><SPAN style="mso-tab-count: 1"> </SPAN>BOOL<SPAN style="mso-spacerun: yes"> </SPAN>GetBestWaveFormat(WAVEFORMATEX & waveFormatEx);<o:p></o:p></FONT></SPAN></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><FONT face="Times New Roman"><SPAN style="mso-tab-count: 1"> </SPAN><o:p></o:p></FONT></SPAN></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><FONT face="Times New Roman"><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><SPAN style="mso-tab-count: 1"> </SPAN></SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: #009900; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''">// because sound card is one and only so i must limit the number of CSoundIn object,</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><o:p></o:p></SPAN></FONT></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><FONT face="Times New Roman"><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><SPAN style="mso-tab-count: 1"> </SPAN></SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: #009900; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''">// but how to limit the class object nums?maybe put constructor into private scope is</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><o:p></o:p></SPAN></FONT></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><FONT face="Times New Roman"><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><SPAN style="mso-tab-count: 1"> </SPAN></SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: #009900; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''">// a good idea,:-)</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><o:p></o:p></SPAN></FONT></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><FONT face="Times New Roman"><SPAN style="mso-tab-count: 1"> </SPAN>CSoundIn();<SPAN style="mso-tab-count: 1"> </SPAN><o:p></o:p></FONT></SPAN></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><FONT face="Times New Roman"> <o:p></o:p></FONT></SPAN></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><FONT face="Times New Roman"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''">private</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''">:<o:p></o:p></SPAN></FONT></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><FONT face="Times New Roman"><SPAN style="mso-tab-count: 1"> </SPAN>WAVEINCAPS<SPAN style="mso-tab-count: 2"> </SPAN>m_WaveInDevCaps;<o:p></o:p></FONT></SPAN></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><FONT face="Times New Roman"><SPAN style="mso-tab-count: 1"> </SPAN>HWAVEIN<SPAN style="mso-tab-count: 2"> </SPAN>m_WaveIn;<o:p></o:p></FONT></SPAN></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><FONT face="Times New Roman"><SPAN style="mso-tab-count: 1"> </SPAN>WAVEHDR<SPAN style="mso-tab-count: 2"> </SPAN>m_WaveHeader;<o:p></o:p></FONT></SPAN></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><FONT face="Times New Roman"><SPAN style="mso-tab-count: 1"> </SPAN>WAVEFORMATEX<SPAN style="mso-tab-count: 1"> </SPAN>m_WaveFormat;<SPAN style="mso-tab-count: 1"> </SPAN><o:p></o:p></FONT></SPAN></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><FONT face="Times New Roman"><SPAN style="mso-tab-count: 1"> </SPAN><o:p></o:p></FONT></SPAN></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><FONT face="Times New Roman"><SPAN style="mso-tab-count: 1"> </SPAN>UINT<SPAN style="mso-spacerun: yes"> </SPAN>m_WaveInSampleRate;<o:p></o:p></FONT></SPAN></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><FONT face="Times New Roman"><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><SPAN style="mso-tab-count: 1"> </SPAN></SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: blue; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''">int</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><SPAN style="mso-spacerun: yes"> </SPAN>m_NbMaxSamples;<o:p></o:p></SPAN></FONT></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><FONT face="Times New Roman"><SPAN style="mso-tab-count: 1"> </SPAN>UINT<SPAN style="mso-spacerun: yes"> </SPAN>m_SizeRecord;<o:p></o:p></FONT></SPAN></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><FONT face="Times New Roman"> <o:p></o:p></FONT></SPAN></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><FONT face="Times New Roman"><SPAN style="mso-tab-count: 1"> </SPAN>DWORD<SPAN style="mso-spacerun: yes"> </SPAN>m_dwLastError;<o:p></o:p></FONT></SPAN></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><FONT face="Times New Roman"> <o:p></o:p></FONT></SPAN></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><FONT face="Times New Roman"><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><SPAN style="mso-tab-count: 1"> </SPAN>enum { MAX_SIZE_INPUT_BUFFER = 1 * 2 * 1024 }; </SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: #009900; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''">// samples * voie * size_samples</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><o:p></o:p></SPAN></FONT></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><FONT face="Times New Roman"> <o:p></o:p></FONT></SPAN></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><FONT face="Times New Roman"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''">public</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''">:<o:p></o:p></SPAN></FONT></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><FONT face="Times New Roman"><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><SPAN style="mso-tab-count: 1"> </SPAN>SHORT<SPAN style="mso-spacerun: yes"> </SPAN>InputBuffer[MAX_SIZE_INPUT_BUFFER];<SPAN style="mso-spacerun: yes"> </SPAN></SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: #009900; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''">// used for int FFT,many GUI application </SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: #009900; mso-bidi-font-size: 12.0pt; mso-fareast-language: ZH-CN"><o:p></o:p></SPAN></FONT></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><FONT face="Times New Roman"><SPAN style="FONT-SIZE: 10pt; COLOR: #009900; mso-bidi-font-size: 12.0pt; mso-fareast-language: ZH-CN"><SPAN style="mso-spacerun: yes"> </SPAN><SPAN style="mso-spacerun: yes"> </SPAN>// </SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: #009900; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''">want to display sound peak so..</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><o:p></o:p></SPAN></FONT></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><FONT face="Times New Roman"><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><SPAN style="mso-tab-count: 1"> </SPAN>BOOL<SPAN style="mso-spacerun: yes"> </SPAN>m_bTerminateThread;<SPAN style="mso-spacerun: yes"> </SPAN></SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: #009900; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''">//<SPAN style="mso-spacerun: yes"> </SPAN>to ''''kill'''' waveCallback function</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><o:p></o:p></SPAN></FONT></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><FONT face="Times New Roman"><SPAN style="mso-tab-count: 1"> </SPAN>BOOL<SPAN style="mso-spacerun: yes"> </SPAN>m_bImportToWaveFile;<o:p></o:p></FONT></SPAN></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><FONT face="Times New Roman"><SPAN style="mso-tab-count: 1"> </SPAN><o:p></o:p></FONT></SPAN></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><FONT face="Times New Roman"><SPAN style="mso-tab-count: 1"> </SPAN>CWaveFile<SPAN style="mso-spacerun: yes"> </SPAN>m_waveFile;<o:p></o:p></FONT></SPAN></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><FONT face="Times New Roman">};<o:p></o:p></FONT></SPAN></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><FONT face="Times New Roman"> <o:p></o:p></FONT></SPAN></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman"><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''">} </SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: #009900; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''">// end namespace perdubug<o:p></o:p></SPAN></FONT></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; COLOR: #009900; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><FONT face="Times New Roman"> <o:p></o:p></FONT></SPAN></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN lang=ZH-CN style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt; mso-fareast-language: ZH-CN; mso-hansi-font-family: Verdana; mso-ascii-font-family: Verdana">对于将录音保存在</SPAN><SPAN style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Verdana; mso-bidi-font-size: 12.0pt; mso-fareast-language: ZH-CN">WAV</SPAN><SPAN lang=ZH-CN style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt; mso-fareast-language: ZH-CN; mso-hansi-font-family: Verdana; mso-ascii-font-family: Verdana">文件的工作主要是由</SPAN><SPAN style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Verdana; mso-bidi-font-size: 12.0pt; mso-fareast-language: ZH-CN">CwaveFile</SPAN><SPAN lang=ZH-CN style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt; mso-fareast-language: ZH-CN; mso-hansi-font-family: Verdana; mso-ascii-font-family: Verdana">类来完成</SPAN><SPAN style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Verdana; mso-bidi-font-size: 12.0pt; mso-fareast-language: ZH-CN">.</SPAN><SPAN lang=ZH-CN style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt; mso-fareast-language: ZH-CN; mso-hansi-font-family: Verdana; mso-ascii-font-family: Verdana">下面是该类的定义</SPAN><SPAN style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Verdana; mso-bidi-font-size: 12.0pt; mso-fareast-language: ZH-CN">:<o:p></o:p></SPAN></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; COLOR: #009900; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><FONT face="Times New Roman">//<o:p></o:p></FONT></SPAN></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><FONT face="Times New Roman"><SPAN style="FONT-SIZE: 10pt; COLOR: #009900; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''">// Encapsulates reading or writing sound data to or from a wave file</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><o:p></o:p></SPAN></FONT></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><FONT face="Times New Roman"><SPAN style="FONT-SIZE: 10pt; COLOR: #009900; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''">//-----------------------------------------------------------------------------</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><o:p></o:p></SPAN></FONT></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><FONT face="Times New Roman"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''">class</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"> CWaveFile<o:p></o:p></SPAN></FONT></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><FONT face="Times New Roman">{<o:p></o:p></FONT></SPAN></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><FONT face="Times New Roman"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''">public</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''">:<o:p></o:p></SPAN></FONT></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><FONT face="Times New Roman"><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><SPAN style="mso-spacerun: yes"> </SPAN>WAVEFORMATEX* m_pwfx;<SPAN style="mso-spacerun: yes"> </SPAN></SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: #009900; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''">// Pointer to WAVEFORMATEX structure</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><o:p></o:p></SPAN></FONT></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><FONT face="Times New Roman"><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><SPAN style="mso-spacerun: yes"> </SPAN>HMMIO<SPAN style="mso-spacerun: yes"> </SPAN>m_hmmio;<SPAN style="mso-spacerun: yes"> </SPAN></SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: #009900; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''">// MM I/O handle for the WAVE</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><o:p></o:p></SPAN></FONT></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><FONT face="Times New Roman"><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><SPAN style="mso-spacerun: yes"> </SPAN>MMCKINFO<SPAN style="mso-spacerun: yes"> </SPAN>m_ck;<SPAN style="mso-spacerun: yes"> </SPAN></SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: #009900; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''">// Multimedia RIFF chunk</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><o:p></o:p></SPAN></FONT></P><P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><FONT face="Times New Roman"><SPAN style="FONT-SIZE: 10pt; COLOR: black; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Roman''''"><SPAN style="mso-spacerun: yes"> </SPAN>MMCKINFO<SPAN style="mso-spacerun: yes"> </SPAN>m_ckRiff;<SPAN style="mso-spacerun: yes"> </SPAN></SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: #009900; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: ''''Times New Rom
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -