From: Tim R. <ti...@ga...> - 2002-08-26 16:28:24
|
On Mon, 26 Aug 2002 14:07:22 +0100 Tim Robinson <ti...@ga...> wrote: | | > -- Broke ReaderStereo. OK, I didn't break it, I just haven't converted | | > it yet. I'll do that next. | | | | Hmmm... Looks redundant... How about having only 1 reader module with | | 2 outputs... If its mono, both outputs are the same. Waddaya think? | | OK, good idea. That's also the correct behaviour for playing a mono | sound file through a stereo setup (imagine if somebody wired together | two sets of 'circuitry' but only played mono through it). It makes the | code easier, too. I've just done that and it seems to work OK. I've also added partial sample rate conversion support: Reader will automatically compress/expand samples to a power of two multiple of the final sample rate. That is, assuming the output is going to be 22050 Hz, Reader can play files at 11025 Hz or 44100 Hz (88200 Hz, etc.). However, if the file's sample rate isn't one of these (e.g. 12345 Hz), it will sound crappy (Reader converts the sample rate to the nearest power of two multiple, so 12345 Hz becomes 22050 Hz). -- Tim Robinson <ti...@ga...> |