read_wav running, reading ok.wav read 4 bytes, should be 4 first 4 bytes should be RIFF RIFF file has 4446 +8 bytes 4 bytes should be WAVE WAVE 4 bytes should be fmt fmt block has 16 bytes compression code = 1 channels = 1 rate = 11025 avg rate = 11025 blockalign = 1 bits per sample = 8 4 bytes should be data data chunk has 4409 bytes 44 bytes read so far sound byte =-127 sound byte =-127 sound byte =-127 sound byte =-128 sound byte =-127 sound byte =-127 sound byte =-126 sound byte =-127 sound byte =-128 sound byte =-127 sound byte =-122 sound byte =-128 sound byte =127 sound byte =127 sound byte =-126 sound byte =-128 sound byte =-123 sound byte =-115 sound byte =-116 smin=-128, smax=127, savg=-49 4453 bytes read so far end wav_read read_write running, writing junk.wav wrote 4 bytes, should be 4 wrote first 4 bytes should be RIFF RIFF wrote file has 4446 +8 bytes wrote 4 bytes should be WAVE WAVE wrote 4 bytes should be fmt fmt wrote block has 16 bytes wrote compression code = 1 wrote channels = 1 wrote rate = 11025 wrote avg rate = 11025 wrote blockalign = 1 wrote bits per sample = 8 wrote 4 bytes should be data data wrote chunk has 4409 bytes 44 bytes written so far 4453 bytes written so far end wav_write