PortAudio
2.0
|
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) |
#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 struct WAV_Writer_s WAV_Writer |
long Audio_WAV_CloseWriter | ( | WAV_Writer * | writer | ) |
References buffer, WAV_Writer_s::dataSize, WAV_Writer_s::dataSizeOffset, WAV_Writer_s::fid, and WAV_HEADER_SIZE.
Referenced by PaQa_SaveRecordingToWaveFile().
long Audio_WAV_OpenWriter | ( | WAV_Writer * | writer, |
const char * | fileName, | ||
int | frameRate, | ||
int | samplesPerFrame | ||
) |
References DATA_ID, WAV_Writer_s::dataSize, WAV_Writer_s::dataSizeOffset, WAV_Writer_s::fid, FMT_ID, RIFF_ID, WAV_HEADER_SIZE, WAVE_FORMAT_PCM, and WAVE_ID.
Referenced by PaQa_SaveRecordingToWaveFile().
long Audio_WAV_WriteShorts | ( | WAV_Writer * | writer, |
short * | samples, | ||
int | numSamples | ||
) |
References buffer, WAV_Writer_s::dataSize, and WAV_Writer_s::fid.
Referenced by PaQa_SaveRecordingToWaveFile().