WPADCanSendStreamData

C Specification

#include <revolution/wpad.h>

#define WPAD_CHAN0               0
#define WPAD_CHAN1               1
#define WPAD_CHAN2               2
#define WPAD_CHAN3               3

BOOL WPADCanSendStreamData( s32 chan );
  

Arguments

chan One of the WPAD_CHANn values.

Return Values

If the audio data is sent successfully to the Wii Remote using WPADSendStreamData, TRUE is returned. Otherwise, FALSE is returned.

Description

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 WPADSendStreamData.

See Also

WPAD Functions
WPADSendStreamData

Revision History

2006/09/18 Initial version.


CONFIDENTIAL