Hi Algomantra, Hi LAD list,

There is some code for using libsndfile for similar tasks.
http://trac.assembla.com/audioexperiments/browser/Sndobject

actually, this are some friendly shortcuts for using libsndfile:
http://trac.assembla.com/audioexperiments/browser/Sndobject/sndobj.cpp

and this file has some testing/examples of usage:
http://trac.assembla.com/audioexperiments/browser/Sndobject/test.cpp

you can get that code with:
svn co http://svn.assembla.com/svn/audioexperiments/Sndobject

For playback, i like portaudio for it is the only one i have used in c++. its easy and seems to play with what is available (jack/alsa okay as far as i went). Take a look on its demo code (that comes when you co its repository), i found some straight line reusable code there.

cheers,



2008/10/24 Fred Gleason <fredg@paravelsystems.com>
On Friday 24 October 2008 07:34:53 am AlgoMantra wrote:
> I've used dev/dsp to spit sound but people say its deprecated.

Don't be afraid of OSS.  While it's not perfect for every application (*no*
audio API is), it is still very effective for some.  It has the great benefit
of simplicity -- open a device, set a couple of ioctls, write data, and
you're done.  For simple cases, the whole business can be done in a about a
dozen lines.  See:

       http://manuals.opensound.com/developer/

Cheers!


|-------------------------------------------------------------------------|
| Frederick F. Gleason, Jr. |               Chief Developer               |
|                           |               Paravel Systems               |
|-------------------------------------------------------------------------|
|  The nice thing about standards is that there are so many of them to    |
|  choose from.                                                           |
|                                      -- Andrew S. Tanenbaum             |
|-------------------------------------------------------------------------|
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@lists.linuxaudio.org
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-dev