I want to play sound samples (sorry for using 'wav', I just want to play raw sound samples) that are resident in memory. I want to play the samples (not read or write files). Which is the most convenient and easy to use library for this purpose?
On Sat, 4 Jan 2003, Erik de Castro Lopo wrote: > On Sat, 4 Jan 2003 12:30:24 +0530 (IST) > Vandana <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > I am building a sound editor and need an API for playing 'wav' > > file samples. I tried the SOX API but the quality is very bad. Is there > > some other API, I can try. > > There are a number of APIs. > > For reading audio files (WAV and others), the most commonly used one around > here is libsndfile: > > http://www.zip.com.au/~erikd/libsndfile/ > > as well as audiofile and one or two others. > > For playing files there is OSS (easy but will be dropped for the 2.6 Linux > kernel), ALSA (the future of audio on Linux), PortAudio (one API which is > portable across many platforms), Jack (client/server architecture for > allowing apps to communicate with one another) and probably others. Search > for them on http://www.google.com/linux/ . > > The libsndfile source code includes an example sound file player which > uses OSS for Linux, but also works on Solaris, Win32 and MacOSX. > > Erik >