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?
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With