LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-26-2002, 10:32 PM   #1
bhushan
LQ Newbie
 
Registered: Dec 2002
Distribution: Redhat, Mandrake, Debian, Slackware
Posts: 2

Rep: Reputation: 0
Question 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
 
Old 12-29-2002, 12:45 PM   #2
mhearn
LQ Guru
 
Registered: Nov 2002
Location: Durham, England
Distribution: Fedora Core 4
Posts: 1,565

Rep: Reputation: 57
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.
 
Old 12-30-2002, 09:16 PM   #3
bhushan
LQ Newbie
 
Registered: Dec 2002
Distribution: Redhat, Mandrake, Debian, Slackware
Posts: 2

Original Poster
Rep: Reputation: 0
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?
 
Old 12-31-2002, 06:47 AM   #4
mhearn
LQ Guru
 
Registered: Nov 2002
Location: Durham, England
Distribution: Fedora Core 4
Posts: 1,565

Rep: Reputation: 57
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounted read-write Fat32 partition suddenly becomes read-only?? hohead Linux - General 8 04-05-2007 12:17 PM
AC'97 soundcard simultaneous sounds pinnochio Linux - Hardware 3 05-15-2005 01:49 PM
Example share in smb.conf doesn't work - read/write vs read only kleptophobiac Linux - Networking 0 09-01-2004 07:14 PM
Open office read only, K-write read/write mode lwtvh Linux - Newbie 1 07-19-2003 11:33 AM
Change from Read only to Read Write File System? justiceisblind Linux - Newbie 3 03-03-2002 07:23 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration