From alsa-user-owner@alsa.jcu.cz  Fri Jan 15 19:15:56 1999
Received: from giasbm01.vsnl.net.in (giasbm01.vsnl.net.in [202.54.1.18])
	by marvin.jcu.cz (8.9.1a/8.9.1) with ESMTP id TAA00495
	for <alsa-user@alsa.jcu.cz>; Fri, 15 Jan 1999 19:11:37 +0100
Received: from pentium200 ([202.54.80.124])
	by giasbm01.vsnl.net.in (8.9.1/8.9.1) with SMTP id XAA31307
	for <alsa-user@alsa.jcu.cz>; Fri, 15 Jan 1999 23:38:14 +0530 (IST)
Message-ID: <010101be0239$74fd47a0$7c5036ca@pentium200>
From: "Patanjali" <patanjali@mindless.com>
To: <alsa-user@alsa.jcu.cz>
Subject: full duplex programming
Date: Wed, 28 Oct 1998 11:38:00 +0530
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_00FE_01BE0267.6A782BA0"
Reply-To: alsa-user@alsa.jcu.cz
Sender: alsa-user-owner@alsa.jcu.cz
Precedence: list

This is a multi-part message in MIME format.

------=_NextPart_000_00FE_01BE0267.6A782BA0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I would like to do a program=20
which reads, processes and writes
suond using the full duplex capabilities of=20
the SB 16 and my ALSA driver.

how do i go about it ?
currently i am doing something like :
while(1)
{
    read some bytes into buffer;
    write same bytes into buffer; // write only number of bytes actually =
read
}

this code doesn't seem to be giving me the right results.
the sound input doesn't always appear at the output,
also the quality is very bad.

is there any demo prog which does the above ?

i would be grateful for any sort  of help on this.

-patanjali
patanjali@mindless.com

------=_NextPart_000_00FE_01BE0267.6A782BA0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>

<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.72.3110.7"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT color=3D#000000 size=3D2>I would like to do a program =
</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2>which reads, processes and =
writes</FONT></DIV>
<DIV><FONT size=3D2>suond using the full duplex capabilities of =
</FONT></DIV>
<DIV><FONT size=3D2>the SB 16 and my ALSA driver.</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>how do i go about it ?</FONT></DIV>
<DIV><FONT size=3D2>currently i am doing something like :</FONT></DIV>
<DIV><FONT size=3D2>while(1)</FONT></DIV>
<DIV><FONT size=3D2>{</FONT></DIV>
<DIV><FONT size=3D2></FONT><FONT color=3D#000000 =
size=3D2>&nbsp;&nbsp;&nbsp; read some=20
bytes into buffer;</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2>&nbsp;&nbsp;&nbsp; write same bytes =
into buffer;=20
// write only number of bytes actually read</FONT></DIV>
<DIV><FONT size=3D2>}</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>this code doesn't seem to be giving me the right=20
results.</FONT></DIV>
<DIV><FONT size=3D2>the sound input doesn't always appear at the=20
output,</FONT></DIV>
<DIV><FONT size=3D2>also the quality is very bad.</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>is there any demo prog which does the above =
?</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>i would be grateful for any sort&nbsp; of help on=20
this.</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>-patanjali</FONT></DIV>
<DIV><FONT size=3D2><A=20
href=3D"mailto:patanjali@mindless.com">patanjali@mindless.com</A></FONT><=
/DIV></BODY></HTML>

------=_NextPart_000_00FE_01BE0267.6A782BA0--


