YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
PortAudioPlayerDeviceDriver.cpp File Reference
#include "PortAudioPlayerDeviceDriver.h"
#include <cstdlib>
#include <cstring>
#include <portaudio.h>
#include <yarp/dev/DeviceDriver.h>
#include <yarp/dev/api.h>
#include <yarp/os/Time.h>
#include <yarp/os/LogComponent.h>
#include <yarp/os/LogStream.h>
#include <mutex>
+ Include dependency graph for PortAudioPlayerDeviceDriver.cpp:

Go to the source code of this file.

Macros

#define SLEEP_TIME   0.010f
 
#define PA_SAMPLE_TYPE   paInt16
 
#define SAMPLE_SILENCE   (0)
 

Typedefs

typedef short SAMPLE
 

Functions

static int bufferIOCallback (const void *inputBuffer, void *outputBuffer, unsigned long framesPerBuffer, const PaStreamCallbackTimeInfo *timeInfo, PaStreamCallbackFlags statusFlags, void *userData)
 

Macro Definition Documentation

◆ PA_SAMPLE_TYPE

#define PA_SAMPLE_TYPE   paInt16

Definition at line 29 of file PortAudioPlayerDeviceDriver.cpp.

◆ SAMPLE_SILENCE

#define SAMPLE_SILENCE   (0)

Definition at line 31 of file PortAudioPlayerDeviceDriver.cpp.

◆ SLEEP_TIME

#define SLEEP_TIME   0.010f

Definition at line 22 of file PortAudioPlayerDeviceDriver.cpp.

Typedef Documentation

◆ SAMPLE

Definition at line 30 of file PortAudioPlayerDeviceDriver.cpp.

Function Documentation

◆ bufferIOCallback()

static int bufferIOCallback ( const void inputBuffer,
void outputBuffer,
unsigned long  framesPerBuffer,
const PaStreamCallbackTimeInfo timeInfo,
PaStreamCallbackFlags  statusFlags,
void userData 
)
static

Definition at line 52 of file PortAudioPlayerDeviceDriver.cpp.