#include <nnsys/snd.h>typedef void ( *NNSSndCaptureCallback )( void* bufferL, void* bufferR, u32 len, NNSSndCaptureFormat format, void* arg );
void NNS_SndCaptureSetPostOutputEffectCallback( NNSSndCaptureCallback func, void* arg );
func |
This is the callback function pointer |
|
This is the parameter that becomes the callback function argument |
Registers the output effect postprocess callback.
While the NNS_SndCaptureStartOutputEffect function is running, the registered callback function indicated by func is called immediately after running the output effect process. To perform the process immediately before the output effect processing, register the callback function with the NNS_SndCaptureSetOutputEffectCallback function.
The arguments for the func callback function uses the pointer to the starting address for the L component bufferL, the pointer to the starting address for the R component bufferR, and the buffer size len. format always takes NNS_SND_CAPTURE_FORMAT_PCM16, which indicates 16-bit PCM. The same arguments for NNS_SndCaptureSetPostOutputEffectCallback are passed to the user argument arg.
Unlike the callback functions of the NNS_SndCaptureStartEffect function, the buffer that is passed can be accessed only from inside the callback function.
NNS_SndCaptureStartOutputEffect, NNS_SndCaptureSetOutputEffectCallback, NNS_SndCaptureStartEffect
01/11/2005 Initial version.
CONFIDENTIAL