Search code examples
c++centossimpleaudioengine

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


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?


Solution

  • 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.