simultaneous read write on soundcard?
Hi everyone,
How do I simultaneously make a read() call on the soundcard i.e. /dev/dsp and also a write() call.I have open the device using the open() call with the RDWR flag, it either only reads or only writes. My code works when i am only writing or reading but when i do them simultaneously using threads, I can't. I have also tried opening the soundcard in NON_BLOCKING mode, with select call, but still it doesn;t work. I have an I810 onboard soundcard. please suggest me something Thanks Bhushan |
Make sure your card is actually capable of full duplex mode - some old/cheap cards are not. As an on board, it's a good candidate for not being able to do that.
|
I have found that my Sound Card supports Full Duplex, but the sound driver which comes with kernel doesn't has Duplex Capabilties. so I installed OSS and the sound card now supports Full duplex, but OSS is a paid software.
any other alternatives? |
ALSA if you don't already use it. BTW, you might want to introduce spaces into your distro list in your profile, it's altering the layout of the page.
|
All times are GMT -5. The time now is 08:34 PM. |