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 17<h2>C Specification</h2> 18 19<dl> 20<dd><pre><code>#include <revolution/wpad.h> 21 22#define WPAD_CHAN0 0 23#define WPAD_CHAN1 1 24#define WPAD_CHAN2 2 25#define WPAD_CHAN3 3 26 27BOOL WPADCanSendStreamData( s32 chan ); 28 </code></pre></dd> 29</dl> 30 31<h2>Arguments</h2> 32<TABLE border="1"> 33 <TBODY> 34 <TR> 35<TD width="120" bgcolor="#ffffe8"><code><b><i>chan</i></b></code></TD> 36<TD>One of the <code>WPAD_CHAN<i>n</i></code> values.</TD> 37 </TR> 38 </TBODY> 39</TABLE> 40<h2>Return Values</h2> 41<p> 42If the audio data is sent successfully to the Wii Remote using <a href="./WPADSendStreamData.html"><code>WPADSendStreamData</code></a>, <code>TRUE</code> is returned. Otherwise, <code>FALSE</code> is returned. 43</p> 44<H2>Description</H2> 45<p> 46Checks 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. 47</p> 48<ul> 49<li>A long period where the signal state is bad</li> 50<li>Connection/disconnection of External Extension Controllers</li> 51<li>An attempt to connect another Wii Remote</li> 52</ul> 53<p> 54To 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 <a href="./WPADSendStreamData.html"><code>WPADSendStreamData</code></a>. 55</p> 56 57<h2>See Also</h2> 58<p> 59<A href="./toc.html" target="contents">WPAD Functions</A><br> <A href="./WPADSendStreamData.html"><CODE>WPADSendStreamData</CODE></A><br> 60</p> 61 62<H2>Revision History</H2> 63<P>2006/09/18 Initial version.</P> 64 65<hr> 66<P>CONFIDENTIAL</p> 67</BODY> 68</HTML>