PortAudio 2.0

Record input into an array; Save array to a file; Playback recorded data. More...

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

Data Structures

struct  paTestData
 

Macros

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

Functions

int main (void)
 

Detailed Description

Record input into an array; Save array to a file; Playback recorded data.

Author
Phil Burk http://www.softsynth.com

Macro Definition Documentation

◆ DITHER_FLAG

#define DITHER_FLAG   (0)

◆ FRAMES_PER_BUFFER

#define FRAMES_PER_BUFFER   (512)

Referenced by main().

◆ NUM_CHANNELS

#define NUM_CHANNELS   (1)

Referenced by main().

◆ NUM_SECONDS

#define NUM_SECONDS   (5)

Referenced by main().

◆ PA_SAMPLE_TYPE

#define PA_SAMPLE_TYPE   paFloat32

Referenced by main().

◆ PRINTF_S_FORMAT

#define PRINTF_S_FORMAT   "%.8f"

Referenced by main().

◆ SAMPLE_RATE

#define SAMPLE_RATE   (44100)

Referenced by main().

◆ SAMPLE_SILENCE

#define SAMPLE_SILENCE   (0.0f)

◆ WRITE_TO_FILE

#define WRITE_TO_FILE   (0)

Set to 1 if you want to capture the recording to a file.

Function Documentation

◆ main()