Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

[50c14b]: riffhdr.h Maximize Restore History

Download this file

riffhdr.h    34 lines (28 with data), 809 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef _ACM_LAB_RIFF_HEADER_H
#define _ACM_LAB_RIFF_HEADER_H
#include <stdio.h>
typedef struct {
char riff_sig[4];
unsigned long total_len_m8;
char wave_sig[8];
unsigned long formatex_len;
unsigned short wFormatTag, nChannels;
unsigned long nSamplesPerSec, nAvgBytesPerSec;
unsigned short nBlockAlign, wBitsPerSample;
char data_sig[4];
unsigned long raw_data_len;
} RIFF_HEADER;
typedef struct {
char wavc_sig[4];
char wavc_ver[4];
long uncompressed;
long compressed;
long headersize;
short channels;
short bits;
short samplespersec;
short unknown;
} WAVC_HEADER;
void write_riff_header (void* memory, long samples, int channels, int samplerate);
void write_wavc_header (FILE *foutp, long samples, int channels, int compressed, int samplerate);
#endif //_ACM_LAB_RIFF_HEADER_H