From: Tim R. <ti...@ga...> - 2002-08-25 14:09:13
|
Hi all, A couple of new updates: -- Switched from char/short/whatever in buffers to float. Each sample is a float; buffers have BUFFER_SIZE elements and are sizeof(float)*BUFFER_SIZE in size. This avoids having each module know about sample formats etc. -- Wrote a Windows Wavout module. I now have wavout-win32.cpp and wavout-win32.h, because the WavoutWin32 class needed a lot more private data members than the Unix equivalent. -- Converted Reader and Writer (and all the other modules) to use floats. Reader now looks at the bits per sample value in the wave header and converts intelligently. Writer just dumps raw 16bps shorts to disk, without a .wav header or anything (Cooledit on my machine will read and successfully play such raw output files). It shouldn't be hard to put the proper .wav format support into writer though. -- Broke ReaderStereo. OK, I didn't break it, I just haven't converted it yet. I'll do that next. -- Tim Robinson <ti...@ga...> |