PortAudio  2.0
Data Structures | Macros | Typedefs | Functions
write_wav.h File Reference

Go to the source code of this file.

Data Structures

struct  WAV_Writer_s
 

Macros

#define RIFF_ID   (('R'<<24) | ('I'<<16) | ('F'<<8) | 'F')
 
#define WAVE_ID   (('W'<<24) | ('A'<<16) | ('V'<<8) | 'E')
 
#define FMT_ID   (('f'<<24) | ('m'<<16) | ('t'<<8) | ' ')
 
#define DATA_ID   (('d'<<24) | ('a'<<16) | ('t'<<8) | 'a')
 
#define FACT_ID   (('f'<<24) | ('a'<<16) | ('c'<<8) | 't')
 
#define WAV_ERR_CHUNK_SIZE   (-1) /* Chunk size is illegal or past file size. */
 
#define WAV_ERR_FILE_TYPE   (-2) /* Not a WAV file. */
 
#define WAV_ERR_ILLEGAL_VALUE   (-3) /* Illegal or unsupported value. Eg. 927 bits/sample */
 
#define WAV_ERR_FORMAT_TYPE   (-4) /* Unsupported format, eg. compressed. */
 
#define WAV_ERR_TRUNCATED   (-5) /* End of file missing. */
 
#define WAVE_FORMAT_PCM   (1)
 
#define WAVE_FORMAT_IMA_ADPCM   (0x0011)
 

Typedefs

typedef struct WAV_Writer_s WAV_Writer
 

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 DATA_ID   (('d'<<24) | ('a'<<16) | ('t'<<8) | 'a')

Referenced by Audio_WAV_OpenWriter().

#define FACT_ID   (('f'<<24) | ('a'<<16) | ('c'<<8) | 't')
#define FMT_ID   (('f'<<24) | ('m'<<16) | ('t'<<8) | ' ')

Referenced by Audio_WAV_OpenWriter().

#define RIFF_ID   (('R'<<24) | ('I'<<16) | ('F'<<8) | 'F')

Referenced by Audio_WAV_OpenWriter().

#define WAV_ERR_CHUNK_SIZE   (-1) /* Chunk size is illegal or past file size. */
#define WAV_ERR_FILE_TYPE   (-2) /* Not a WAV file. */
#define WAV_ERR_FORMAT_TYPE   (-4) /* Unsupported format, eg. compressed. */
#define WAV_ERR_ILLEGAL_VALUE   (-3) /* Illegal or unsupported value. Eg. 927 bits/sample */
#define WAV_ERR_TRUNCATED   (-5) /* End of file missing. */
#define WAVE_FORMAT_IMA_ADPCM   (0x0011)
#define WAVE_FORMAT_PCM   (1)

Referenced by Audio_WAV_OpenWriter().

#define WAVE_ID   (('W'<<24) | ('A'<<16) | ('V'<<8) | 'E')

Referenced by Audio_WAV_OpenWriter().

Typedef Documentation

typedef struct WAV_Writer_s WAV_Writer

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 
)