#include <stdio.h>
#include <stdlib.h>
#include <strings.h>
#include "portaudio.h"
Defines | |
#define | SAMPLE_RATE (44100) |
#define | FRAMES_PER_BUFFER (1024) |
#define | NUM_CHANNELS (2) |
#define | DITHER_FLAG (0) |
#define | PA_SAMPLE_TYPE paInt24 |
#define | SAMPLE_SIZE (3) |
#define | SAMPLE_SILENCE (0) |
#define | CLEAR(a) bzero( (a), FRAMES_PER_BUFFER * NUM_CHANNELS * SAMPLE_SIZE ) |
#define | PRINTF_S_FORMAT "%d" |
Functions | |
int | main (void) |
based on code by: Phil Burk http://www.softsynth.com
based on code by: Ross Bencina rossb@audiomulch.com
#define CLEAR | ( | a | ) | bzero( (a), FRAMES_PER_BUFFER * NUM_CHANNELS * SAMPLE_SIZE ) |
#define DITHER_FLAG (0) |
#define FRAMES_PER_BUFFER (1024) |
#define NUM_CHANNELS (2) |
#define PA_SAMPLE_TYPE paInt24 |
#define PRINTF_S_FORMAT "%d" |
#define SAMPLE_RATE (44100) |
#define SAMPLE_SILENCE (0) |
#define SAMPLE_SIZE (3) |
int main | ( | void | ) |