patest_read_write_wire.c File Reference
Tests full duplex blocking I/O by passing input straight to output.
More...
#include <stdio.h>
#include <stdlib.h>
#include <strings.h>
#include "portaudio.h"
Detailed Description
Tests full duplex blocking I/O by passing input straight to output.
- Author:
- Bjorn Roche. XO Audio LLC for Z-Systems Engineering.
-
based on code by: Phil Burk http://www.softsynth.com
-
based on code by: Ross Bencina rossb@audiomulch.com
Define Documentation
#define CLEAR |
( |
a |
|
) |
bzero( (a), FRAMES_PER_BUFFER * NUM_CHANNELS * SAMPLE_SIZE ) |
#define FRAMES_PER_BUFFER (1024) |
#define PA_SAMPLE_TYPE paInt24 |
#define PRINTF_S_FORMAT "%d" |
#define SAMPLE_RATE (44100) |
#define SAMPLE_SILENCE (0) |
Function Documentation
References PaStreamParameters::channelCount, CLEAR, PaDeviceInfo::defaultHighInputLatency, PaDeviceInfo::defaultHighOutputLatency, PaDeviceInfo::defaultLowInputLatency, PaDeviceInfo::defaultLowOutputLatency, PaStreamParameters::device, FRAMES_PER_BUFFER, PaStreamParameters::hostApiSpecificStreamInfo, NUM_CHANNELS, Pa_AbortStream(), Pa_CloseStream(), Pa_GetDefaultInputDevice(), Pa_GetDefaultOutputDevice(), Pa_GetDeviceInfo(), Pa_GetErrorText(), Pa_Initialize(), Pa_OpenStream(), Pa_ReadStream(), PA_SAMPLE_TYPE, Pa_StartStream(), Pa_StopStream(), Pa_Terminate(), Pa_WriteStream(), paClipOff, paInputOverflow, paNoError, paOutputUnderflow, SAMPLE_RATE, SAMPLE_SIZE, PaStreamParameters::sampleFormat, and PaStreamParameters::suggestedLatency.