PortAudio  2.0
Macros | Functions
write_wav.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include "write_wav.h"

Macros

#define WAV_HEADER_SIZE
 

Functions

long Audio_WAV_OpenWriter (WAV_Writer *writer, const char *fileName, int frameRate, int samplesPerFrame)
 
long Audio_WAV_WriteShorts (WAV_Writer *writer, short *samples, int numSamples)
 
long Audio_WAV_CloseWriter (WAV_Writer *writer)
 

Macro Definition Documentation

#define WAV_HEADER_SIZE
Value:
(4 + 4 + 4 + /* RIFF+size+WAVE */ \
4 + 4 + 16 + /* fmt chunk */ \
4 + 4 ) /* data chunk */

Referenced by Audio_WAV_CloseWriter(), and Audio_WAV_OpenWriter().

Function Documentation

long Audio_WAV_CloseWriter ( WAV_Writer writer)
long Audio_WAV_OpenWriter ( WAV_Writer writer,
const char *  fileName,
int  frameRate,
int  samplesPerFrame 
)
long Audio_WAV_WriteShorts ( WAV_Writer writer,
short *  samples,
int  numSamples 
)