# NNS_SndCaptureSetPostOutputEffectCallback

## Syntax

      #include <nnsys/snd.h>

      typedef void (*NNSSndCaptureCallback)(
          void* bufferL,
          void* bufferR,
          u32 len,
          NNSSndCaptureFormat format,
          void* arg
      );

      void NNS_SndCaptureSetPostOutputEffectCallback(
              NNSSndCaptureCallback func,
              void* arg );

## Arguments

`func` | This is the callback function pointer
`arg` | This is the parameter that becomes the callback function argument

## Return Values

None.

## Description

Registers the output effect post-process callback.

While the `NNS_SndCaptureStartOutputEffect` function is performing output effect processing, the registered callback function indicated by `func` is called immediately after this processing. To call a callback function immediately before the output effect processing, register the callback function with the `NNS_SndCaptureSetOutputEffectCallback` function.

The arguments for the `func` callback function are 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`. The format `format` always takes `NNS_SND_CAPTURE_FORMAT_PCM16`, which indicates 16-bit PCM. The same value as the argument for `NNS_SndCaptureSetPostOutputEffectCallback` is passed to the user argument `arg`.

### Note

Unlike the callback functions of the `NNS_SndCaptureStartEffect` function, the buffer that is passed can be accessed only from inside the callback function.

## See Also

NNS_SndCaptureStartOutputEffect, NNS_SndCaptureSetOutputEffectCallback, NNS_SndCaptureStartEffect

## Revision History

2005/01/11 Initial version.

CONFIDENTIAL