AXRmtGetSamples

Syntax

#include <cafe/ax.h>

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

Parameters

chan The controller number.
buffer Buffer to which audio data will be copied.
samples Number of samples to copy.

Return Values

Actual number of audio samples copied.

Description

Copies rendered audio samples for controller chan into buffer.

If fewer audio samples are available than specified by samples, this function will copy all available samples and return the count.

Availability

Library Version Availability
Sound 2.0 Yes
Sound 1.0 Yes

Do Not Call From

None.

See Also

AXRmtAdvancePtr
AXRmtGetSamplesLeft
AXSetVoiceRmtOn

Revision History

2013-05-08 Automated cleanup pass.
2012-01-26 Update to Audio API v2.0.
2011-02-21 Initial Version


CONFIDENTIAL