YARP
Yet Another Robot Platform
PortAudioRecorderDeviceDriver.cpp File Reference
#include "PortAudioRecorderDeviceDriver.h"
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <yarp/dev/api.h>
#include <yarp/os/Time.h>
#include <yarp/os/LogComponent.h>
#include <yarp/os/LogStream.h>
+ Include dependency graph for PortAudioRecorderDeviceDriver.cpp:

Go to the source code of this file.

Macros

#define SLEEP_TIME   0.005f
 
#define PA_SAMPLE_TYPE   paInt16
 
#define SAMPLE_SILENCE   (0)
 
#define DEFAULT_SAMPLE_RATE   (44100)
 
#define DEFAULT_NUM_CHANNELS   (2)
 
#define DEFAULT_DITHER_FLAG   (0)
 
#define DEFAULT_FRAMES_PER_BUFFER   (512)
 

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

◆ DEFAULT_DITHER_FLAG

#define DEFAULT_DITHER_FLAG   (0)

Definition at line 56 of file PortAudioRecorderDeviceDriver.cpp.

◆ DEFAULT_FRAMES_PER_BUFFER

#define DEFAULT_FRAMES_PER_BUFFER   (512)

Definition at line 57 of file PortAudioRecorderDeviceDriver.cpp.

◆ DEFAULT_NUM_CHANNELS

#define DEFAULT_NUM_CHANNELS   (2)

Definition at line 55 of file PortAudioRecorderDeviceDriver.cpp.

◆ DEFAULT_SAMPLE_RATE

#define DEFAULT_SAMPLE_RATE   (44100)

Definition at line 54 of file PortAudioRecorderDeviceDriver.cpp.

◆ PA_SAMPLE_TYPE

#define PA_SAMPLE_TYPE   paInt16

Definition at line 40 of file PortAudioRecorderDeviceDriver.cpp.

◆ SAMPLE_SILENCE

#define SAMPLE_SILENCE   (0)

Definition at line 42 of file PortAudioRecorderDeviceDriver.cpp.

◆ SLEEP_TIME

#define SLEEP_TIME   0.005f

Definition at line 33 of file PortAudioRecorderDeviceDriver.cpp.

Typedef Documentation

◆ SAMPLE

typedef short SAMPLE

Definition at line 41 of file PortAudioRecorderDeviceDriver.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 68 of file PortAudioRecorderDeviceDriver.cpp.