wav.h

Go to the documentation of this file.
00001 #ifndef WAV_WAVH
00002 #define WAV_WAVH
00003 
00004 typedef struct wavinfo {
00005   char *wav_format;             /* data format as a string */
00006   unsigned short wFormatTag;    /* data format */
00007   unsigned short wChannels;     /* number of channels */
00008   unsigned long  wSamplesPerSecond; /* samples per second per channel */
00009   unsigned long  wAvgBytesPerSec; /* estimate of bytes per second needed */
00010   unsigned short wBlockAlign;   /* byte alignment of a basic sample block */
00011   unsigned short wBitsPerSample; /* bits per sample */
00012   unsigned long  data_length;   /* length of sound data in bytes */
00013   unsigned long  bytespersample; /* bytes per sample (per channel) */
00014 } WavInfo;
00015 
00016 /* purloined from public Microsoft RIFF docs */
00017 
00018 #define WAVE_FORMAT_UNKNOWN             (0x0000)
00019 #define WAVE_FORMAT_PCM_SCI                     (0x0001) 
00020 #define WAVE_FORMAT_ADPCM               (0x0002)
00021 #define WAVE_FORMAT_ALAW                (0x0006)
00022 #define WAVE_FORMAT_MULAW               (0x0007)
00023 #define WAVE_FORMAT_OKI_ADPCM           (0x0010)
00024 #define WAVE_FORMAT_DIGISTD             (0x0015)
00025 #define WAVE_FORMAT_DIGIFIX             (0x0016)
00026 #define IBM_FORMAT_MULAW                (0x0101)
00027 #define IBM_FORMAT_ALAW                 (0x0102)
00028 #define IBM_FORMAT_ADPCM                (0x0103)
00029 
00030 #endif

Generated on Sun Mar 4 15:04:00 2007 for Scilab [trunk] by  doxygen 1.5.1