#include <revolution/wpad.h> #define WPAD_CHAN0 0 #define WPAD_CHAN1 1 #define WPAD_CHAN2 2 #define WPAD_CHAN3 3 BOOL WPADCanSendStreamData( s32 chan );
| chan | One of the WPAD_CHANn values. |
|---|
If the audio data is sent successfully to the Wii Remote using the WPADSendStreamData function, TRUE is returned. Otherwise, FALSE is returned.
Checks 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.
To avoid audio break-up, use this function to check whether the audio can be sent before calling the WPADSendStreamData function. Also, because the internal command queue is referenced during the check, please disable interrupts between the calling of this function and the WPADSendStreamData function.
2006/09/18 Initial version.
CONFIDENTIAL