PDA

View Full Version : [SOLVED] Problem with /dev/dsp



Aqlor
February 12th, 2011, 05:20 PM
Hey again guys,

I wanted to test some really interesting code I found online on http://www.arachnoid.com/signal_processing/fft.html

At one point the program uses /dev/dsp1 and as far as I know, this isn't being used in a while so an error pops as expected.

Is there any other way to get the audio input values such as easily?

Before, we could get the input just by doing "cat /dev/dsp" right? If we wanted to do something similar to that now, what should we do?

Thanks,
Levi

eeperson
February 13th, 2011, 05:59 PM
You can get back the '/dev/dsp' file by installing the 'oss-compat' package.

Aqlor
February 13th, 2011, 08:39 PM
Already had it installed:


levi@laptop:~$ sudo apt-get install oss-compat
Reading package lists... Done
Building dependency tree
Reading state information... Done
oss-compat is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.

the problem continues :S

Zugzwang
February 13th, 2011, 09:00 PM
@OP: Do you also have the package "alsa-oss" installed?

Aqlor
February 13th, 2011, 10:31 PM
I have it too...


levi@laptop:~$ sudo apt-get install alsa-oss
Reading package lists... Done
Building dependency tree
Reading state information... Done
alsa-oss is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.

The Cog
February 13th, 2011, 10:42 PM
Try starting your program with the prefix aoss. This fixed ut2004 for me in Ubuntu 10.10. So instead of:
ut2004
I run
aoss ut2004
The error message I get without aoss is that it can't find /dev/dsp.

Aqlor
February 14th, 2011, 01:13 AM
Thank you The Cog, I'm marking this solved :D

mandza
June 30th, 2012, 03:34 PM
Thank you The Cog again, this was helpfull for me too.