Audio data structures and PortAudio management.
More...
#include <cstring>
#include <iostream>
#include <portaudio.h>
#include <vector>
Go to the source code of this file.
|
| static int | paCB (const void *inBuf, void *outBuf, unsigned long framesPerBuf, const PaStreamCallbackTimeInfo *timeInfo, PaStreamCallbackFlags statusFlags, void *userData) |
| | PortAudio callback function.
|
Audio data structures and PortAudio management.
◆ paCB()
| int paCB |
( |
const void * | inBuf, |
|
|
void * | outBuf, |
|
|
unsigned long | framesPerBuf, |
|
|
const PaStreamCallbackTimeInfo * | timeInfo, |
|
|
PaStreamCallbackFlags | statusFlags, |
|
|
void * | userData ) |
|
static |
PortAudio callback function.
- Parameters
-
| inBuf | Input audio buffer provided by the stream (may be nullptr depending on configuration). |
| outBuf | Output audio buffer that must be filled with audio samples. |
| framesPerBuf | Number of audio frames to process in this callback invocation. |
| timeInfo | Timing information for the current callback (stream time, input/output timestamps). |
| statusFlags | Flags indicating stream status (e.g., underflow, overflow, clipping). |
| userData | Pointer to user-defined data passed when the stream was opened. |
- Returns
- PortAudio callback status code (e.g., continue streaming, complete, or abort).