PortAudio 2.0
patest_clip.c File Reference

Play a sine wave for several seconds at an amplitude that would require clipping. More...

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

Data Structures

struct  paTestData
 

Macros

#define NUM_SECONDS   (4)
 
#define SAMPLE_RATE   (44100)
 
#define M_PI   (3.14159265)
 
#define TABLE_SIZE   (200)
 

Typedefs

typedef struct paTestData paTestData
 

Functions

PaError PlaySine (paTestData *data, unsigned long flags, float amplitude)
 
int main (void)
 

Detailed Description

Play a sine wave for several seconds at an amplitude that would require clipping.

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

Macro Definition Documentation

◆ M_PI

#define M_PI   (3.14159265)

Referenced by main().

◆ NUM_SECONDS

#define NUM_SECONDS   (4)

Referenced by PlaySine().

◆ SAMPLE_RATE

#define SAMPLE_RATE   (44100)

Referenced by PlaySine().

◆ TABLE_SIZE

#define TABLE_SIZE   (200)

Referenced by main().

Typedef Documentation

◆ paTestData

typedef struct paTestData paTestData

Function Documentation

◆ main()

◆ PlaySine()