debug_sine_formats.c File Reference

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

Data Structures

struct  paTestData

Defines

#define NUM_SECONDS   (10)
#define SAMPLE_RATE   (44100)
#define FRAMES_PER_BUFFER   (256)
#define LEFT_FREQ   (SAMPLE_RATE/512.0)
#define RIGHT_FREQ   (500.0)
#define AMPLITUDE   (1.0)
#define TEST_UINT8   (1)
#define TEST_INT8   (0)
#define TEST_INT16   (0)
#define TEST_FLOAT32   (0)
#define TEST_FORMAT   paUInt8
#define SAMPLE_ZERO   (0x80)
#define DOUBLE_TO_SAMPLE(x)   (SAMPLE_ZERO + (SAMPLE_t)(127.0 * (x)))
#define FORMAT_NAME   "Unsigned 8 Bit"

Typedefs

typedef unsigned char SAMPLE_t

Functions

int main (void)

Define Documentation

#define AMPLITUDE   (1.0)

Referenced by main().

#define DOUBLE_TO_SAMPLE (  )     (SAMPLE_ZERO + (SAMPLE_t)(127.0 * (x)))
#define FORMAT_NAME   "Unsigned 8 Bit"

Referenced by main().

#define FRAMES_PER_BUFFER   (256)
#define LEFT_FREQ   (SAMPLE_RATE/512.0)
#define NUM_SECONDS   (10)
#define RIGHT_FREQ   (500.0)
#define SAMPLE_RATE   (44100)
#define SAMPLE_ZERO   (0x80)
#define TEST_FLOAT32   (0)
#define TEST_FORMAT   paUInt8

Referenced by main().

#define TEST_INT16   (0)
#define TEST_INT8   (0)
#define TEST_UINT8   (1)

Typedef Documentation

typedef unsigned char SAMPLE_t

Function Documentation

int main ( void   ) 

Generated for PortAudio by  doxygen1.6.1