Re: [linux-audio-dev] Vsound-like tools for ALSA?

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [linux-audio-dev] Vsound-like tools for ALSA?
From: Lance Blisters (geoff_AT_drachma.ugcs.caltech.edu)
Date: Wed Jan 28 2004 - 17:46:38 EET


> > > 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
  of white noise, but should easily succeed in 99% of cases. The tool could
  even try different bit/byte alignments (skipping 0,1,2,...15 bits at
  the beginning), to recover fragments of files which might not start at
  an even sample. Number of channels and sampling rate might need to be
  tuned by hand, but that's a simple matter once the other parameters
  are correct.

  Surely this must exist, maybe in the windows or mac universe?

  -geoff


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Wed Jan 28 2004 - 17:58:40 EET