[linux-audio-dev] Waveform audio API
Erik de Castro Lopo
erikd-lad at mega-nerd.com
Sun Oct 12 15:47:01 UTC 2003
On Sun, 12 Oct 2003 15:22:07 +0200
J_Zar <romaninz at aruba.it>(by way of J_Zar <romaninz at aruba.it>) wrote:
> I'm searching for an audio API to parse a .wav file and show its waveform.
> Someone knows something similar?
>
> If not, someone could tell me how to do it by myself?
>
> I mean if I open the file .wav and get one buffer at time,
libsndfile seems to be the standard:
http://www.zip.com.au/~erikd/libsndfile/
> what I should do to know its waveform?
Well if you read the samples [1, 2, 3, 4, -4, -3, -2, -1] then the
waveform is something like:
/|
/ |
/ |
/ |
| /
| /
| /
|/
Erik
--
+-----------------------------------------------------------+
Erik de Castro Lopo nospam at mega-nerd.com (Yes it's valid)
+-----------------------------------------------------------+
"There are two ways of constructing a software design. One way is
to make it so simple that there are obviously no deficiencies
and the other is to make it so complicated that there are no
obvious deficiencies." -- C A R Hoare
More information about the Linux-audio-dev
mailing list