[linux-audio-dev] I need help! I can't handle the problem about full-duplex (playback & record) programming

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: [linux-audio-dev] I need help! I can't handle the problem about full-duplex (playback & record) programming
From: leo zhu (leozhuca_AT_yahoo.com)
Date: Sat Dec 14 2002 - 01:46:48 EET


Hi, guys,

I am working on a project in which I need to implement
palyback and recording on the same sound card and in
the same time.

I open the soundcard with RDWR mode and used 'select'
to wait for sound data on card and read it. After
that, I receive audio data from socket and write this
data into buffer on card. for now. I tested it and i
found if just one way, ie. just read or write, it
works fine, the quality of sound is fine. but if two
way, ie. play&record, the sound is horrible and the
weird is that I always get better sound quality from
playback that what i got from recording. (I heard the
audio from two ends). by the way, I used
SNDCTL_DSP_TRIGGER to syncronyse them.

can this method implement full-duplex functions ? if
not, what should I do? thanks in advance

leo

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Sat Dec 14 2002 - 01:48:54 EET