On Wed, Jan 28, 2004 at 07:46:38 -0800, Lance Blisters wrote:
> Quite how you determine the format of the .raw
file is beyond me -
> anybody?!
.raw files don't have any header, so you have to guess. (The sample
format is almost always S16_LE, but for the number of channels (mostly
1 or 2) or the sample rate, you have to try until it doesn't sound too
bad. ;-)
I've also wished for a tool which analyzed raw audio data. Shouldn't
be too difficult to try all common formats (word size, signed/unsigned,
big/little endian) and measure average volume and continuity to determine
which formats yield a reasonable waveform. Tool might fail on samples
Audacity had/has a raw importer which showwed a small graph of the
waveform and you could try different combos.
- Steve