<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>RE: full duplex sound (was: Newbie question)</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>Hi Lex</FONT>
</P>

<P><FONT SIZE=2>I did get a little further. I could read audio using SoundInputStream and I could write it using QueueSound. However, if I recorded some sound and queued it on QueueSound, stopped recordng and played the QueueSound as soon as I started recording agin the output stopped so I couldnt get full duplex going. Obviously i am doing something wrong!</FONT></P>

<P><FONT SIZE=2>Regards</FONT>
<BR><FONT SIZE=2>Bob </FONT>
</P>

<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: lex@cc.gatech.edu</FONT>
<BR><FONT SIZE=2>To: squeak-dev@lists.squeakfoundation.org</FONT>
<BR><FONT SIZE=2>Sent: 13/11/2004 13:47</FONT>
<BR><FONT SIZE=2>Subject: full duplex sound (was: Newbie question)</FONT>
</P>

<P><FONT SIZE=2>The full duplex audio should be fine, so long as you do not need the</FONT>
<BR><FONT SIZE=2>smallest possible latencies.&nbsp; Squeak has in fact been designed with</FONT>
<BR><FONT SIZE=2>audio applications in mind that need -- e.g., its garbage collector</FONT>
<BR><FONT SIZE=2>favors low pause-per-GC instead of low overall CPU percentage.&nbsp; I know</FONT>
<BR><FONT SIZE=2>of some people at GT who built a radio (can't remember if it was AM or</FONT>
<BR><FONT SIZE=2>FM) that read files from a swiki and then broadcast them.&nbsp; This radio</FONT>
<BR><FONT SIZE=2>application sounds simpler than what you are doing, but it suggests that</FONT>
<BR><FONT SIZE=2>you can build full audio apps in Squeak.</FONT>
</P>

<P><FONT SIZE=2>When you say port I/O, is serial port access enough?&nbsp; If so, Squeak will</FONT>
<BR><FONT SIZE=2>do fine for you.&nbsp; Look at class SerialPort.</FONT>
</P>

<P><FONT SIZE=2>These aside, what symptom do you see when you try to play new sounds? </FONT>
<BR><FONT SIZE=2>Do you get silence, static, or a pre-debug window?&nbsp; I don't know many</FONT>
<BR><FONT SIZE=2>programming details of sound programming in Squeak, but if you post more</FONT>
<BR><FONT SIZE=2>details maybe someone else will recognize the problem.</FONT>
</P>
<BR>

<P><FONT SIZE=2>Good luck overall!&nbsp; Squeak should be an excellent platform for you if</FONT>
<BR><FONT SIZE=2>you can deal with 1-10 ms latencies; you will be able to tweak your</FONT>
<BR><FONT SIZE=2>program very easily, even while it is running.</FONT>
</P>

<P><FONT SIZE=2>Lex</FONT>
</P>
<BR>
<BR>

<P><FONT SIZE=2>PS -- Check out the IRC channel if you have not.&nbsp; It is EXCELLENT for</FONT>
<BR><FONT SIZE=2>people who are starting to use Squeak and thus will bump into all sorts</FONT>
<BR><FONT SIZE=2>of oddities and have lots of little questions.</FONT>
</P>


<P><STRONG>*** Confidentiality Notice ***</STRONG> 
Proprietary/Confidential<BR>Information belonging to CGI Group Inc. and its 
affiliates<BR>may be contained in this message. If you are not a 
recipient<BR>indicated or intended in this message (or responsible 
for<BR>delivery of this message to such person), or you think for<BR>any reason 
that this message may have been addressed to you<BR>in error, you may not use or 
copy or deliver this message<BR>to anyone else.&nbsp; In such case, you should 
destroy this<BR>message and are asked to notify the sender by reply 
email.</P>
</BODY>
</HTML>