PortAudio
2.0
|
Go to the source code of this file.
Data Structures | |
struct | PaMacBlio |
Macros | |
#define | PA_MAC_BLIO_BUSY_WAIT_SLEEP_INTERVAL (5) |
#define | PA_MAC_BLIO_BUSY_WAIT |
Functions | |
PaError | initializeBlioRingBuffers (PaMacBlio *blio, PaSampleFormat inputSampleFormat, PaSampleFormat outputSampleFormat, long ringBufferSizeInFrames, int inChan, int outChan) |
PaError | destroyBlioRingBuffers (PaMacBlio *blio) |
PaError | resetBlioRingBuffers (PaMacBlio *blio) |
int | BlioCallback (const void *input, void *output, unsigned long frameCount, const PaStreamCallbackTimeInfo *timeInfo, PaStreamCallbackFlags statusFlags, void *userData) |
PaError | waitUntilBlioWriteBufferIsEmpty (PaMacBlio *blio, double sampleRate, size_t framesPerBuffer) |
#define PA_MAC_BLIO_BUSY_WAIT |
#define PA_MAC_BLIO_BUSY_WAIT_SLEEP_INTERVAL (5) |
Referenced by ReadStream(), and WriteStream().
int BlioCallback | ( | const void * | input, |
void * | output, | ||
unsigned long | frameCount, | ||
const PaStreamCallbackTimeInfo * | timeInfo, | ||
PaStreamCallbackFlags | statusFlags, | ||
void * | userData | ||
) |
References PaMacBlio::inChan, PaMacBlio::inputRingBuffer, PaMacBlio::outChan, PaMacBlio::outputRingBuffer, PaMacBlio::outputSampleSizeActual, paContinue, paInputOverflow, paOutputUnderflow, PaUtil_GetRingBufferReadAvailable(), PaUtil_GetRingBufferWriteAvailable(), PaUtil_ReadRingBuffer(), PaUtil_WriteRingBuffer(), and PaMacBlio::statusFlags.
References PaUtilRingBuffer::buffer, PaMacBlio::inputRingBuffer, PaMacBlio::outputRingBuffer, paNoError, and UNIX_ERR.
Referenced by initializeBlioRingBuffers().
PaError initializeBlioRingBuffers | ( | PaMacBlio * | blio, |
PaSampleFormat | inputSampleFormat, | ||
PaSampleFormat | outputSampleFormat, | ||
long | ringBufferSizeInFrames, | ||
int | inChan, | ||
int | outChan | ||
) |
This should be called with the relevant info when initializing a stream for callback.
ringBufferSizeInFrames | must be a power of 2 |
References PaUtilRingBuffer::buffer, destroyBlioRingBuffers(), PaMacBlio::errors, PaMacBlio::inChan, PaMacBlio::inputRingBuffer, PaMacBlio::inputSampleFormat, PaMacBlio::inputSampleSizeActual, PaMacBlio::inputSampleSizePow2, PaMacBlio::outChan, PaMacBlio::outputRingBuffer, PaMacBlio::outputSampleFormat, PaMacBlio::outputSampleSizeActual, PaMacBlio::outputSampleSizePow2, paInsufficientMemory, PaMacCore_SetUnixError(), paNoError, PaUtil_InitializeRingBuffer(), resetBlioRingBuffers(), PaMacBlio::ringBufferFrames, PaMacBlio::statusFlags, and UNIX_ERR.
References PaUtilRingBuffer::buffer, PaUtilRingBuffer::bufferSize, PaUtilRingBuffer::elementSizeBytes, PaMacBlio::inputRingBuffer, PaMacBlio::outputRingBuffer, paNoError, PaUtil_AdvanceRingBufferWriteIndex(), PaUtil_FlushRingBuffer(), PaMacBlio::ringBufferFrames, and PaMacBlio::statusFlags.
Referenced by initializeBlioRingBuffers().