[music-dsp] Startup for a newbie

Erik de Castro Lopo erikd-music-dsp at mega-nerd.com
Wed Aug 15 16:59:51 EDT 2001


Simon Lemieux wrote:
> 
> > This page has lots of Computer Music and DSP links.
> >
> >   http://www.softsynth.com/musiclinks.html
> 
> Excellent!  All this should give me a big week of reading and
> understanding/programming!
> 
> Also, by the mean time, I was just wondering about a very newbie concept on
> Linux;  If I know how to make the signal, can I send it to /dev/dsp so I can
> hear the result?  In what form do I send it?  Raw bytes?  Or do I have to
> transform it in any way?

Hi Simon,

Good to see you on this list :-).

To answer your questions, basically you just have the setup up /dev/dsp for sample 
rate, channels and bitwidth (ie 8 or 16). then you can pretty much write to it 
and everything should work.

There is a really simple example of playing a sound file using libsndfile at

   http://www.zip.com.au/~erikd/libsndfile/sfplay.c

The part you should be inertested in is the function open_dsp_device().

For more advanced /dev/dsp material have a look at the OSS programmers guide at:

    http://www.4front-tech.com/pguide/index.html

Erik
-- 
-----------------------------------------------------------------
Erik de Castro Lopo     nospam at mega-nerd.com      (Yes its valid)
-----------------------------------------------------------------
"The Internet interprets censorship as damage, and routes around it."
- John Gilmore, EFF co-founder

dupswapdrop -- the music-dsp mailing list and website: subscription info,
FAQ, source code archive, list archive, book reviews, dsp links
http://shoko.calarts.edu/musicdsp/




More information about the music-dsp mailing list