📄 classpsoundchannel.html
字号:
</td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Determine if all of the record buffer allocated has been filled. There is an implicit <a class="el" href="classPSoundChannel.html#z389_3">Abort()</a> of the recording if this occurs and recording is stopped. The channel may need to be closed and opened again to start a new recording.<p><dl compact><dt><b>Returns: </b></dt><dd> TRUE if the sound driver has filled a buffer. </dl> </td> </tr></table><a name="z389_6" doxytag="PSoundChannel::CreateChannel"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> PSoundChannel* PSoundChannel::CreateChannel </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const <a class="el" href="classPString.html">PString</a> & </td> <td class="mdname" nowrap> <em>driverName</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="classPPluginManager.html">PPluginManager</a> * </td> <td class="mdname" nowrap> <em>pluginMgr</em> = NULL</td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [static]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Return sound channel object that correspond to the specified name </td> </tr></table><a name="z389_7" doxytag="PSoundChannel::CreateOpenedChannel"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> PSoundChannel* PSoundChannel::CreateOpenedChannel </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const <a class="el" href="classPString.html">PString</a> & </td> <td class="mdname" nowrap> <em>driverName</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>const <a class="el" href="classPString.html">PString</a> & </td> <td class="mdname" nowrap> <em>deviceName</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>const <a class="el" href="classPSoundChannel.html#z387_0">PSoundChannel::Directions</a> </td> <td class="mdname" nowrap> , </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>unsigned </td> <td class="mdname" nowrap> <em>numChannels</em> = 1, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>unsigned </td> <td class="mdname" nowrap> <em>sampleRate</em> = 8000, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>unsigned </td> <td class="mdname" nowrap> <em>bitsPerSample</em> = 16</td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [static]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Return opened sound channel object that correspond to the specified name </td> </tr></table><a name="z391_6" doxytag="PSoundChannel::GetBuffers"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> virtual BOOL PSoundChannel::GetBuffers </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">PINDEX & </td> <td class="mdname" nowrap> <em>size</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>PINDEX & </td> <td class="mdname" nowrap> <em>count</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [inline, virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Get the internal buffers for the sound channel I/O.<p><dl compact><dt><b>Returns: </b></dt><dd> TRUE if the buffer size were obtained. </dl> </td> </tr></table><a name="z391_2" doxytag="PSoundChannel::GetChannels"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> virtual unsigned PSoundChannel::GetChannels </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const<code> [inline, virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Get the number of channels (mono/stereo) in the sound.<p> </td> </tr></table><a name="z389_8" doxytag="PSoundChannel::GetDefaultDevice"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="classPString.html">PString</a> PSoundChannel::GetDefaultDevice </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classPSoundChannel.html#z387_0">Directions</a> </td> <td class="mdname1" valign="top" nowrap> <em>dir</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [static]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Get the name for the default sound devices/driver that is on this platform. Note that a named device may not necessarily do both playing and recording so the arrays returned with the dir# parameter in each value is not necessarily the same.<p><dl compact><dt><b>Returns: </b></dt><dd> A platform dependent string for the sound player/recorder. </dl> </td> </tr></table><a name="z389_9" doxytag="PSoundChannel::GetDeviceNames"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="classPStringList.html">PStringList</a> PSoundChannel::GetDeviceNames </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classPSoundChannel.html#z387_0">Directions</a> </td> <td class="mdname1" valign="top" nowrap> <em>dir</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [static]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Get the list of all devices name for the default sound devices/driver that is on this platform. Note that a named device may not necessarily do both playing and recording so the arrays returned with the dir# parameter in each value is not necessarily the same.<p><dl compact><dt><b>Returns: </b></dt><dd> A platform dependent string for the sound player/recorder. </dl> </td> </tr></table><a name="z389_5" doxytag="PSoundChannel::GetDeviceNames"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="classPStringList.html">PStringList</a> PSoundChannel::GetDeviceNames </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const <a class="el" href="classPString.html">PString</a> & </td> <td class="mdname" nowrap> <em>driverName</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>const <a class="el" href="classPSoundChannel.html#z387_0">PSoundChannel::Directions</a> </td> <td class="mdname" nowrap> , </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="classPPluginManager.html">PPluginManager</a> * </td> <td class="mdname" nowrap> <em>pluginMgr</em> = NULL</td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [static]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Return sound devices that correspond to the specified name </td> </tr></table><a name="z389_4" doxytag="PSoundChannel::GetDriverNames"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="classPStringList.html">PStringList</a> PSoundChannel::GetDriverNames </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classPPluginManager.html">PPluginManager</a> * </td> <td class="mdname1" valign="top" nowrap> <em>pluginMgr</em> = NULL </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [static]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -