1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3
4<head>
5<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
6<META name="GENERATOR" content="Microsoft FrontPage 5.0">
7<META http-equiv="Content-Style-Type" content="text/css">
8<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css">
9<title>WPADCanSendStreamData</title>
10</head>
11
12<body>
13
14<h1>WPADCanSendStreamData</h1>
15
16<h2>Syntax</h2>
17<dl><dd><pre class="construction">
18#include &lt;revolution/wpad.h&gt;
19
20#define WPAD_CHAN0               0
21#define WPAD_CHAN1               1
22#define WPAD_CHAN2               2
23#define WPAD_CHAN3               3
24
25BOOL WPADCanSendStreamData( s32 chan );
26</pre></dd></dl>
27
28<h2>Arguments</h2>
29<TABLE class="arguments" border="1" >
30  <TBODY>
31    <TR>
32<TH>chan</TH>
33<TD>One of the <code>WPAD_CHAN<i>n</i></code> values.</TD>
34    </TR>
35  </TBODY>
36</TABLE>
37
38<h2>Return Values</h2>
39<p>
40If the audio data is sent successfully to the Wii Remote using the <a href="./WPADSendStreamData.html"><code>WPADSendStreamData</code></a> function, <code>TRUE</code> is returned. Otherwise, <code>FALSE</code> is returned.
41</p>
42<H2>Description</H2>
43<p>
44Checks whether audio data can be sent to the Wii Remote on the specified channel. Currently, audio data is known to break up under the conditions listed below during playback through the Wii Remote speaker. Once the audio breaks up, the speaker needs to be stopped and restarted.
45</p>
46<ul>
47<li>A long period where the signal state is bad</li>
48<li>Connection/disconnection of External Extension Controllers</li>
49<li>An attempt to connect another Wii Remote</li>
50</ul>
51<p>
52To avoid audio break-up, use this function to check whether the audio can be sent before calling the <a href="./WPADSendStreamData.html"><code>WPADSendStreamData</code></a> function. Also, because the internal command queue is referenced during the check, please disable interrupts between the calling of this function and the <a href="./WPADSendStreamData.html"><code>WPADSendStreamData</code></a> function.
53</p>
54
55<h2>See Also</h2>
56<p class="reference">
57<A href="./WPADSendStreamData.html">WPADSendStreamData</A>
58</p>
59
60<H2>Revision History</H2>
61<P>
622006/09/18 Initial version.<br>
63</P>
64
65<hr><p>CONFIDENTIAL</p></body>
66</html>