nn::snd::CTR::GetMixedBusData Function

Syntax

bool GetMixedBusData(
     s16 * pData,
     s32 nSamplesPerFrame = NN_SND_SAMPLES_PER_FRAME
);

Arguments

Name Description
out pData Buffer address where the Mix bus data is copied.
in nSamplesPerFrame Number of samples per channel (in general, specify NN_SND_SAMPLES_PER_FRAME).

Return Values

Returns true if the data was obtained successfully; otherwise, returns false.

Description

Copies the Mix bus data to the specified buffer.

The data is interleaved and copied to the region that begins at pData. The Mix bus data contains 16-bit stereo PCM waveforms, so the length of the data being copied will be sizeof(s16) * nSamplesPerFrame * 2.

This function has to be called within the sound thread. Use the nn::snd::CTR::OutputCapture class when you want to get data asynchronously within the sound thread.

Revision History

2010/10/25
Added use cautions.
2010/06/14
Initial version.

CONFIDENTIAL