📄 a2dp_8h.html
字号:
<td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Call to CLOSE a media connection from a local SEP to a remote device. <p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td></td><td valign=top><em>a2dp</em> </td><td>The profile instance which will be used. </td></tr> <tr><td></td><td valign=top><em>media_sink</em> </td><td>The sink identifying the AV stream.</td></tr> </table></dl>A2DP_CLOSE_CFM message will be received by the application. </td> </tr></table><a class="anchor" name="a39" doxytag="a2dp.h::A2dpCloseAll" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void A2dpCloseAll </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const <a class="el" href="a2dp_8h.html#a2">A2DP</a> * </td> <td class="mdname1" valign="top" nowrap> <em>a2dp</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Clean up all AV related connections to the local device. <p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td></td><td valign=top><em>a2dp</em> </td><td>The profile instance which will be used.</td></tr> </table></dl>This function call is provided to allow the client to clean up all A2DP related connections currently established to the local device. This means that all media and signalling channels currently opened will be disconnected. </td> </tr></table><a class="anchor" name="a40" doxytag="a2dp.h::A2dpStart" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void A2dpStart </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const <a class="el" href="a2dp_8h.html#a2">A2DP</a> * </td> <td class="mdname" nowrap> <em>a2dp</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td></td> <td class="md" nowrap><a class="el" href="sink___8h.html#a0">Sink</a> </td> <td class="mdname" nowrap> <em>media_sink</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Call to START streaming media from a currently OPEN or SUSPENDED media connection. <p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td></td><td valign=top><em>a2dp</em> </td><td>The profile instance which will be used. </td></tr> <tr><td></td><td valign=top><em>media_sink</em> </td><td>The sink identifying the AV stream.</td></tr> </table></dl>A2DP_START_CFM message will be received by the application. </td> </tr></table><a class="anchor" name="a41" doxytag="a2dp.h::A2dpSuspend" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void A2dpSuspend </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const <a class="el" href="a2dp_8h.html#a2">A2DP</a> * </td> <td class="mdname" nowrap> <em>a2dp</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td></td> <td class="md" nowrap><a class="el" href="sink___8h.html#a0">Sink</a> </td> <td class="mdname" nowrap> <em>media_sink</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Call to SUSPEND a streaming media connection. <p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td></td><td valign=top><em>a2dp</em> </td><td>The profile instance which will be used. </td></tr> <tr><td></td><td valign=top><em>media_sink</em> </td><td>The sink identifying the AV stream.</td></tr> </table></dl>A2DP_SUSPEND_CFM message will be received by the application. </td> </tr></table><a class="anchor" name="a42" doxytag="a2dp.h::A2dpAudioCodecEnable" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void A2dpAudioCodecEnable </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="a2dp_8h.html#a2">A2DP</a> * </td> <td class="mdname" nowrap> <em>a2dp</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td></td> <td class="md" nowrap><a class="el" href="sink___8h.html#a0">Sink</a> </td> <td class="mdname" nowrap> <em>media_sink</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Enable the audio (AV) codec. <p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td></td><td valign=top><em>a2dp</em> </td><td>The profile instance which will be used.</td></tr> </table></dl>This is called by the client whenever it wants to enable the DSP and start encoding/ decoding the audio stream. The library will ensure the correct codec is loaded into the DSP and after configuring it correctly will start it. The codec can be disabled by calling <a class="el" href="a2dp_8h.html#a43">A2dpAudioCodecDisable()</a>. </td> </tr></table><a class="anchor" name="a43" doxytag="a2dp.h::A2dpAudioCodecDisable" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void A2dpAudioCodecDisable </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="a2dp_8h.html#a2">A2DP</a> * </td> <td class="mdname" nowrap> <em>a2dp</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td></td> <td class="md" nowrap><a class="el" href="sink___8h.html#a0">Sink</a> </td> <td class="mdname" nowrap> <em>media_sink</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Disable the audio (AV) codec. <p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td></td><td valign=top><em>a2dp</em> </td><td>The profile instance which will be used.</td></tr> </table></dl>This is called by the client whenever it wants to disable the codec and stop encoding/ decoding the audio stream. The codec can be enabled by calling <a class="el" href="a2dp_8h.html#a42">A2dpAudioCodecEnable()</a>; </td> </tr></table><a class="anchor" name="a44" doxytag="a2dp.h::A2dpEnableSignallingIndications" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void A2dpEnableSignallingIndications </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="a2dp_8h.html#a2">A2DP</a> * </td> <td class="mdname1" valign="top" nowrap> <em>a2dp</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Call to receive indications when the signalling channel is opened or closed. <p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td></td><td valign=top><em>a2dp</em> </td><td>The profile instance which will be used.</td></tr> </table></dl>This is called by the client if it wants to retrieve messages when the signalling channel opens or closes. By default the messages A2DP_SIGNALLING_OPEN_IND and A2DP_SIGNALLING_CLOSE_IND are not passed to the application unless this API is called. </td> </tr></table></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -