23 #ifndef _PORTAUDIO_NETWORK_PLAYER_HXX_
24 #define _PORTAUDIO_NETWORK_PLAYER_HXX_
29 #include <portaudio.h>
36 int mPreferredBufferSize;
39 PaStream * mPortAudioStream;
41 std::string mErrorMessage;
59 static int ProcessCallback (
60 const void *inputBuffers,
62 unsigned long framesPerBuffer,
63 const PaStreamCallbackTimeInfo* timeInfo,
64 PaStreamCallbackFlags statusFlags,
66 inline bool CheckPaError(PaError result);
68 void Do(
const void *inputBuffers,
void *outputBuffers,
unsigned long framesPerBuffer);
69 void DoInPorts(
float** input,
unsigned long nframes);
70 void DoOutPorts(
float** output,
unsigned long nframes);
71 void MuteOutBuffers(
float** output,
unsigned long nframes);