[LAU] Library for simple audio programming

Robin Gareus robin at gareus.org
Tue Jan 15 09:28:49 UTC 2013

Hi Ivan,

Here's a commandline utility approach:

On 01/15/2013 04:09 AM, Ivan K wrote:
> I want to write a simple application that can open a .wav file
> (stereo or mono), grab the header,

sndfile-info <filename>

> and then read and dump
> the sample values from a portion of the .wav file to an ascii data
> file 

sox infile.wav outfile.dat

(I want to plot minute portions of the sound file with
> application such as gnuplot).

There's sndfile-waveform

> I am most comfortable working in C, though I would
> consider working in C++.

> What library or libraries do people suggest I work with?

libsndfile in general.

> Thanks.
> P.S.  Or maybe someone can suggest a command line utility
> that already does this.

More information about the Linux-audio-user mailing list