WPADCanSendStreamData

Syntax

#include <cafe/pads/wpad/wpad.h>

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

BOOL WPADCanSendStreamData( s32 chan );

Parameters

chan One of the WPAD_CHANn values.

Return Values

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

Description

Determines 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. After 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, disable interrupts between the calling of this function and the WPADSendStreamData function.

Do Not Call From

Background Do not call this function from the background.
Interrupt handler Do not call this function from any interrupt handler.
Exception handler Do not call this function from any exception handler.
Multiple Cores Do not call this function from more than one Core.

See Also

WPADSendStreamData

Revision History

2013/05/08 Automated cleanup pass.
2006/09/18 Initial version.


CONFIDENTIAL