PortAudio 2.0
paex_write_sine.c File Reference

Play a sine wave for several seconds using the blocking API (Pa_WriteStream()) More...

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

Macros

#define NUM_SECONDS   (5)
 
#define SAMPLE_RATE   (44100)
 
#define CHANNELS   (2) /* Set to 1 or 2. */
 
#define FRAMES_PER_BUFFER   (1024)
 
#define M_PI   (3.14159265)
 
#define TABLE_SIZE   (200)
 

Functions

int main (void)
 

Detailed Description

Play a sine wave for several seconds using the blocking API (Pa_WriteStream())

Author
Ross Bencina rossb.nosp@m.@aud.nosp@m.iomul.nosp@m.ch.c.nosp@m.om
Phil Burk philb.nosp@m.urk@.nosp@m.softs.nosp@m.ynth.nosp@m..com

Macro Definition Documentation

◆ CHANNELS

#define CHANNELS   (2) /* Set to 1 or 2. */

Referenced by main().

◆ FRAMES_PER_BUFFER

#define FRAMES_PER_BUFFER   (1024)

Referenced by main().

◆ M_PI

#define M_PI   (3.14159265)

Referenced by main().

◆ NUM_SECONDS

#define NUM_SECONDS   (5)

Referenced by main().

◆ SAMPLE_RATE

#define SAMPLE_RATE   (44100)

Referenced by main().

◆ TABLE_SIZE

#define TABLE_SIZE   (200)

Referenced by main().

Function Documentation

◆ main()