PortAudio  2.0
Macros | Typedefs | Functions
patest_read_record.c File Reference

Record input into an array; Save array to a file; Playback recorded data. Implemented using the blocking API (Pa_ReadStream(), Pa_WriteStream() ) More...

#include <stdio.h>
#include <stdlib.h>
#include "portaudio.h"

Macros

#define SAMPLE_RATE   (44100)
 
#define FRAMES_PER_BUFFER   (1024)
 
#define NUM_SECONDS   (5)
 
#define NUM_CHANNELS   (2)
 
#define DITHER_FLAG   (0)
 
#define PA_SAMPLE_TYPE   paFloat32
 
#define SAMPLE_SILENCE   (0.0f)
 
#define PRINTF_S_FORMAT   "%.8f"
 

Typedefs

typedef float SAMPLE
 

Functions

int main (void)
 

Detailed Description

Record input into an array; Save array to a file; Playback recorded data. Implemented using the blocking API (Pa_ReadStream(), Pa_WriteStream() )

@author Phil Burk  http://www.softsynth.com
Author
Ross Bencina rossb.nosp@m.@aud.nosp@m.iomul.nosp@m.ch.c.nosp@m.om

Macro Definition Documentation

#define DITHER_FLAG   (0)
#define FRAMES_PER_BUFFER   (1024)
#define NUM_CHANNELS   (2)
#define NUM_SECONDS   (5)
#define PA_SAMPLE_TYPE   paFloat32
#define PRINTF_S_FORMAT   "%.8f"
#define SAMPLE_RATE   (44100)
#define SAMPLE_SILENCE   (0.0f)

Typedef Documentation

typedef float SAMPLE

Function Documentation

int main ( void  )