Yet Another Robot Platform
PortAudioDeviceDriver.cpp File Reference
#include "PortAudioDeviceDriver.h"
#include <cstdio>
#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 dependency graph for PortAudioDeviceDriver.cpp:

Go to the source code of this file.


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


typedef short SAMPLE


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

Macro Definition Documentation


#define PA_SAMPLE_TYPE   paInt16

Definition at line 42 of file PortAudioDeviceDriver.cpp.


#define SAMPLE_SILENCE   (0)

Definition at line 44 of file PortAudioDeviceDriver.cpp.


#define SLEEP_TIME   0.005f

Definition at line 35 of file PortAudioDeviceDriver.cpp.

Typedef Documentation


typedef short SAMPLE

Definition at line 43 of file PortAudioDeviceDriver.cpp.

Function Documentation

◆ bufferIOCallback()

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

Definition at line 64 of file PortAudioDeviceDriver.cpp.