Or, put another way.... /dev/audio and /dev/dsp are long since deprecated interfaces. The Intel audio driver provides an ALSA interface (of which you can see low level details via /dev/snd.)
If you are an application developer then you most likely don't want to deal directly with the low level device nodes or else your app is going to have negative effects on the rest of the system. Instead you can: * if playing anything more complex then raw pcm data, then us gstreamer which will make your life a lot easier. http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/index.html * If you want to just send pcm data to the sound hardware then you can still use gstreamer, although it's a bit overkill. A simpler mechanism would just be to open a connection to a PulseAudio connection: http://0pointer.de/lennart/projects/pulseaudio/doxygen/ * also... you can call the ALSA interface (which will really direct the pcm data to PulseAudio, and will not provide you as much control): http://www.alsa-project.org/alsa-doc/alsa-lib/ --rusty On Tue, 2009-04-07 at 18:28 -0700, Wang, Jing J wrote: > Take a look at /dev/snd/PCMxxxx > The simplest to play audio is "aplay -D plughw:0,0 wavefile" > > -----Original Message----- > From: [email protected] [mailto:[email protected]] On Behalf Of > Peter-Jan Deweirdt > Sent: 2009年4月7日 23:32 > To: [email protected] > Subject: [Moblin Dev] play audio > > Hi, > > How can I play audio in moblin? To what device do I have to write? > I don't see an /dev/audio or /dev/dsp > > Regards PJ > _______________________________________________ > Moblin dev Mailing List > [email protected] > > To manage or unsubscribe from this mailing list visit: > https://lists.moblin.org/mailman/listinfo/dev or your user account on > http://moblin.org once logged in. > > For more information on the Moblin Developer Mailing lists visit: > http://moblin.org/community/mailing-lists > _______________________________________________ > Moblin dev Mailing List > [email protected] > > To manage or unsubscribe from this mailing list visit: > https://lists.moblin.org/mailman/listinfo/dev or your user account on > http://moblin.org once logged in. > > For more information on the Moblin Developer Mailing lists visit: > http://moblin.org/community/mailing-lists _______________________________________________ Moblin dev Mailing List [email protected] To manage or unsubscribe from this mailing list visit: https://lists.moblin.org/mailman/listinfo/dev or your user account on http://moblin.org once logged in. For more information on the Moblin Developer Mailing lists visit: http://moblin.org/community/mailing-lists
