#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>
Go to the source code of this file.
|
static int | bufferIOCallback (const void *inputBuffer, void *outputBuffer, unsigned long framesPerBuffer, const PaStreamCallbackTimeInfo *timeInfo, PaStreamCallbackFlags statusFlags, void *userData) |
|
◆ DEFAULT_DITHER_FLAG
#define DEFAULT_DITHER_FLAG (0) |
◆ DEFAULT_FRAMES_PER_BUFFER
#define DEFAULT_FRAMES_PER_BUFFER (512) |
◆ DEFAULT_NUM_CHANNELS
#define DEFAULT_NUM_CHANNELS (2) |
◆ DEFAULT_SAMPLE_RATE
#define DEFAULT_SAMPLE_RATE (44100) |
◆ PA_SAMPLE_TYPE
#define PA_SAMPLE_TYPE paInt16 |
◆ SAMPLE_SILENCE
#define SAMPLE_SILENCE (0) |
◆ SLEEP_TIME
#define SLEEP_TIME 0.005f |
◆ SAMPLE
◆ bufferIOCallback()
static int bufferIOCallback |
( |
const void * |
inputBuffer, |
|
|
void * |
outputBuffer, |
|
|
unsigned long |
framesPerBuffer, |
|
|
const PaStreamCallbackTimeInfo * |
timeInfo, |
|
|
PaStreamCallbackFlags |
statusFlags, |
|
|
void * |
userData |
|
) |
| |
|
static |