LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   simultaneous read write on soundcard? (https://www.linuxquestions.org/questions/programming-9/simultaneous-read-write-on-soundcard-39469/)

bhushan 12-26-2002 10:32 PM

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

mhearn 12-29-2002 12:45 PM

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.

bhushan 12-30-2002 09:16 PM

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?

mhearn 12-31-2002 06:47 AM

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.