Hi. We need to play wave files as part of our current project. To
support this, we’ve been using a customized version of vplay (found in
/usr/demo/src/audio/). All of the core logic remains untouched; the
only changes we made were to the interface. The resulting program,
called wavplay, works fine with some wave files, but not others. The
files it plays fine are 1 channel, 16 bit, 16000 sample wave files. It
does not work on 1 channel, 8 bit, 8000 sample wave files. By ‘not
work’, I mean that the wave file plays, but it sound garbled. Some
spots sound almost correct, but others are totally incomprehensible.
Just 'cat’ing the wave files to /dev/dsp has the same effect.
The obvious solution, of course, is to pass all of our 8-bit files
through a conversion program. This is undesirable, however, as we are
using a text-to-speech engine that produces the 8-bit files, and we do
not want to have to do anything to the resulting output. Does anyone
have any ideas on what the problem might be, or even where we could look
for a better/more robust wave-player program for QNX 4? Thanks.
Josh Hamacher
FAAC Incorporated