PortAudio  2.0
Data Structures | Defines | Functions
patest_multi_sine.c File Reference

Play a different sine wave on each channel. More...

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

Data Structures

struct  paTestData

Defines

#define SAMPLE_RATE   (44100)
#define FRAMES_PER_BUFFER   (256)
#define FREQ_INCR   (300.0 / SAMPLE_RATE)
#define MAX_CHANNELS   (64)
#define M_PI   (3.14159265)

Functions

int test (short interleaved)
int main (void)

Detailed Description

Play a different sine wave on each channel.

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

Define Documentation

#define FRAMES_PER_BUFFER   (256)

Referenced by test().

#define FREQ_INCR   (300.0 / SAMPLE_RATE)
#define M_PI   (3.14159265)
#define MAX_CHANNELS   (64)

Referenced by test().

#define SAMPLE_RATE   (44100)

Referenced by test().


Function Documentation

int main ( void  )
int test ( short  interleaved)