patest_record.c File Reference
Record input into an array; Save array to a file; Playback recorded data.
More...
#include <stdio.h>
#include <stdlib.h>
#include "portaudio.h"
Detailed Description
Record input into an array; Save array to a file; Playback recorded data.
- Author:
- Phil Burk http://www.softsynth.com
Define Documentation
#define FRAMES_PER_BUFFER (1024) |
#define PA_SAMPLE_TYPE paFloat32 |
#define PRINTF_S_FORMAT "%.8f" |
#define SAMPLE_RATE (44100) |
#define SAMPLE_SILENCE (0.0f) |
Typedef Documentation
Function Documentation
References PaStreamParameters::channelCount, PaDeviceInfo::defaultLowInputLatency, PaDeviceInfo::defaultLowOutputLatency, PaStreamParameters::device, paTestData::frameIndex, FRAMES_PER_BUFFER, PaStreamParameters::hostApiSpecificStreamInfo, paTestData::maxFrameIndex, NUM_CHANNELS, NUM_SECONDS, Pa_CloseStream(), Pa_GetDefaultInputDevice(), Pa_GetDefaultOutputDevice(), Pa_GetDeviceInfo(), Pa_GetErrorText(), Pa_Initialize(), Pa_IsStreamActive(), Pa_OpenStream(), PA_SAMPLE_TYPE, Pa_Sleep(), Pa_StartStream(), Pa_Terminate(), paClipOff, paNoError, PRINTF_S_FORMAT, paTestData::recordedSamples, SAMPLE_RATE, PaStreamParameters::sampleFormat, and PaStreamParameters::suggestedLatency.