AXRmtGetSamples

Syntax

#include <revolution/ax.h>

s32 AXRmtGetSamples(s32 chan, s16* buffer, s32 samples);

Arguments

chan Represents the controller number.
buffer Pointer to the location that encoding data is to be retrieved.
samples Represents the number of audio data requests (in units of samples).

Return Values

Returns the actual number of sets of audio data obtained.

Description

The AXRmtGetSamples function copies the amount of audio data given by samples for the controller on the channel given by chan from the internal buffer of the AX library into buffer. If the data in the internal buffer is less than the amount given by samples, just those samples that can be used will be copied to buffer and returns the number that were actually copied.

See Also

None.

Revision History

2006/07/31 Initial version.


CONFIDENTIAL