#include "portaudio.h"
Go to the source code of this file.
Data Structures | |
struct | PaUtilStreamInterface |
struct | PaUtilStreamRepresentation |
Defines | |
#define | PA_STREAM_MAGIC (0x18273645) |
#define | PA_STREAM_REP(stream) ((PaUtilStreamRepresentation*) (stream) ) |
#define | PA_STREAM_INTERFACE(stream) PA_STREAM_REP( (stream) )->streamInterface |
Functions | |
void | PaUtil_InitializeStreamInterface (PaUtilStreamInterface *streamInterface, PaError(*Close)(PaStream *), PaError(*Start)(PaStream *), PaError(*Stop)(PaStream *), PaError(*Abort)(PaStream *), PaError(*IsStopped)(PaStream *), PaError(*IsActive)(PaStream *), PaTime(*GetTime)(PaStream *), double(*GetCpuLoad)(PaStream *), PaError(*Read)(PaStream *stream, void *buffer, unsigned long frames), PaError(*Write)(PaStream *stream, const void *buffer, unsigned long frames), signed long(*GetReadAvailable)(PaStream *stream), signed long(*GetWriteAvailable)(PaStream *stream)) |
PaError | PaUtil_DummyRead (PaStream *stream, void *buffer, unsigned long frames) |
PaError | PaUtil_DummyWrite (PaStream *stream, const void *buffer, unsigned long frames) |
signed long | PaUtil_DummyGetReadAvailable (PaStream *stream) |
signed long | PaUtil_DummyGetWriteAvailable (PaStream *stream) |
double | PaUtil_DummyGetCpuLoad (PaStream *stream) |
void | PaUtil_InitializeStreamRepresentation (PaUtilStreamRepresentation *streamRepresentation, PaUtilStreamInterface *streamInterface, PaStreamCallback *streamCallback, void *userData) |
void | PaUtil_TerminateStreamRepresentation (PaUtilStreamRepresentation *streamRepresentation) |
PaError | PaUtil_ValidateStreamPointer (PaStream *stream) |
#define PA_STREAM_INTERFACE | ( | stream | ) | PA_STREAM_REP( (stream) )->streamInterface |
Cast an opaque stream pointer into a pointer to a PaUtilStreamInterface.
#define PA_STREAM_MAGIC (0x18273645) |
#define PA_STREAM_REP | ( | stream | ) | ((PaUtilStreamRepresentation*) (stream) ) |
Cast an opaque stream pointer into a pointer to a PaUtilStreamRepresentation.
double PaUtil_DummyGetCpuLoad | ( | PaStream * | stream | ) |
Dummy GetCpuLoad function for use in an interface to a read/write stream. Pass to the GetCpuLoad parameter of PaUtil_InitializeStreamInterface.
signed long PaUtil_DummyGetReadAvailable | ( | PaStream * | stream | ) |
Dummy GetReadAvailable function for use in interfaces to callback based streams. Pass to the GetReadAvailable parameter of PaUtil_InitializeStreamInterface.
signed long PaUtil_DummyGetWriteAvailable | ( | PaStream * | stream | ) |
Dummy GetWriteAvailable function for use in interfaces to callback based streams. Pass to the GetWriteAvailable parameter of PaUtil_InitializeStreamInterface.
Dummy Read function for use in interfaces to a callback based streams. Pass to the Read parameter of PaUtil_InitializeStreamInterface.
Dummy Write function for use in an interfaces to callback based streams. Pass to the Write parameter of PaUtil_InitializeStreamInterface.
void PaUtil_InitializeStreamInterface | ( | PaUtilStreamInterface * | streamInterface, | |
PaError(*)(PaStream *) | Close, | |||
PaError(*)(PaStream *) | Start, | |||
PaError(*)(PaStream *) | Stop, | |||
PaError(*)(PaStream *) | Abort, | |||
PaError(*)(PaStream *) | IsStopped, | |||
PaError(*)(PaStream *) | IsActive, | |||
PaTime(*)(PaStream *) | GetTime, | |||
double(*)(PaStream *) | GetCpuLoad, | |||
PaError(*)(PaStream *stream, void *buffer, unsigned long frames) | Read, | |||
PaError(*)(PaStream *stream, const void *buffer, unsigned long frames) | Write, | |||
signed long(*)(PaStream *stream) | GetReadAvailable, | |||
signed long(*)(PaStream *stream) | GetWriteAvailable | |||
) |
Initialize the fields of a PaUtilStreamInterface structure.
void PaUtil_InitializeStreamRepresentation | ( | PaUtilStreamRepresentation * | streamRepresentation, | |
PaUtilStreamInterface * | streamInterface, | |||
PaStreamCallback * | streamCallback, | |||
void * | userData | |||
) |
void PaUtil_TerminateStreamRepresentation | ( | PaUtilStreamRepresentation * | streamRepresentation | ) |
Clean up a PaUtilStreamRepresentation structure previously initialized by a call to PaUtil_InitializeStreamRepresentation.
Check that the stream pointer is valid.