/dev/dsp not found error while audio playback in centOS 6.x

493 Views Asked by At

I am trying develop an application using C++ which will record audio data from mic and will playback the data. But while trying audio capture I am getting following error message.

cannot open /dev/dsp

Can anyone advise me on this?

2

There are 2 best solutions below

0
Naseef Chowdhury On BEST ANSWER

As far as I know /dev/dsp has been obsoleted. Latest CentOS uses ALSA(Advance Linux Sound Architecture) instead of that. You can check the implementation of pulse audio. I have used the code from the given link to develop an application similar to yours. Hope it will help you.

0
Jazz On

older softwares like dosemu , some (VERY) old ham softwares actually require /dev/dsp be present.There is a package or config that you are missing. Googling for it might help, I forget the exact page that I found the solution on.This applies to fedora and most modern debian based distros as well.