ParsecAudioCallback
typedef void(* ParsecAudioCallback) (const int16_t *pcm, uint32_t frames, void *opaque )
Fired synchronously if new audio is available from the host.
Passed to ParsecClientPollAudio
. IMPORTANT: Parsec SDK functions may not be called within this callback, doing so will result in a deadlock on the calling thread.
Parameters
Name | Description |
---|---|
pcm | 16-bit signed, two channel, 48KHz PCM audio samples. |
frames | Number of audio frames. |
opaque | User supplied context passed to ParsecClientPollAudio . |