Unix Programming - /dev/dsp linux

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > April 2006 > /dev/dsp linux





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author /dev/dsp linux
edware

2006-04-28, 7:16 pm

Can someone point me to some documentation on how to
use the /dev/dsp device under linux?
I understand that files sent to this device is digial
and will be converted to analog in the soundcard.
And am I correct that music encoded with MP3, OGG, and
similar, are decoded to the same "format" which can
be sent to the soundcard?

I wonder if I in a C program can write a music tune,
in an array or something, containing frequencies that
will be converted to analog in the soundcard.
Mikko Rauhala

2006-04-28, 7:16 pm

On Fri, 28 Apr 2006 23:04:59 GMT, edware <erixk@hotmail.com> wrote:
> Can someone point me to some documentation on how to
> use the /dev/dsp device under linux?


Would rather not. /dev/dsp is a part of the old, deprecated OSS
API, while the ALSA api should be used instead nowadays.

See http://www.alsa-project.org/documentation.php#0.9doc

--
Mikko Rauhala - mjr@iki.fi - <URL:http://www.iki.fi/mjr/>
Transhumanist - WTA member - <URL:http://www.transhumanism.org/>
Singularitarian - SIAI supporter - <URL:http://www.singinst.org/>

Jan Knutar

2006-04-29, 1:26 am

edware wrote:

> Can someone point me to some documentation on how to
> use the /dev/dsp device under linux?


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

As a bonus, it may work on non-Linux systems too, since
they sometimes provide OSS emulation.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com