nn::snd::CTR::GetMixedBusData Function
bool GetMixedBusData(
s16 * pData,
s32 nSamplesPerFrame = NN_SND_SAMPLES_PER_FRAME
);
| 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). |
true if the data was obtained successfully; otherwise, returns false. 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.
CONFIDENTIAL