comparison music2/wavfile.h @ 52:15a18fbe6f21

* Known bugs added to the README * Code cleaning (0 -> NULL when needed, indentation, spaces, ...)
author thib
date Sat, 18 Apr 2009 18:35:39 +0000
parents 3a6aaeab7b4e
children 4416cfac86ae
comparison
equal deleted inserted replaced
51:cbb301016a4e 52:15a18fbe6f21
41 /* 41 /*
42 * These values represent values found in/or destined for a 42 * These values represent values found in/or destined for a
43 * WAV file. 43 * WAV file.
44 */ 44 */
45 typedef struct { 45 typedef struct {
46 unsigned int SamplingRate; /* Sampling rate in Hz */ 46 unsigned int SamplingRate; /* Sampling rate in Hz */
47 int Channels; /* Mono or Stereo */ 47 int Channels; /* Mono or Stereo */
48 unsigned short DataBits; /* Sample bit size (8/12/16) */ 48 unsigned short DataBits; /* Sample bit size (8/12/16) */
49 } WAVINF; 49 } WAVINF;
50 50
51 struct WAVFILE{ 51 struct WAVFILE{
52 WAVINF wavinfo; /* WAV file hdr info */ 52 WAVINF wavinfo; /* WAV file hdr info */
53 WAVFILE(void); 53 WAVFILE(void);
54 static int freq; 54 static int freq;
55 static int format; 55 static int format;
56 static int channels; 56 static int channels;
57 virtual ~WAVFILE() {}; 57 virtual ~WAVFILE() {};