<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4915.500" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Let's try that again, with the attachment this 
time.</FONT></DIV>
<DIV><FONT face=Arial size=2>(sorry!)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV style="FONT: 10pt arial">----- Original Message ----- 
<DIV style="BACKGROUND: #e4e4e4; font-color: black"><B>From:</B> <A 
title=cb@inner-ear.net href="mailto:cb@inner-ear.net">cb</A> </DIV>
<DIV><B>To:</B> <A title=pd-list@iem.kug.ac.at 
href="mailto:pd-list@iem.kug.ac.at">pd-list@iem.kug.ac.at</A> </DIV>
<DIV><B>Sent:</B> Saturday, May 18, 2002 1:33 PM</DIV>
<DIV><B>Subject:</B> Re: [PD] ASIO (bug?)</DIV></DIV>
<DIV><BR></DIV>
<DIV><FONT face=Arial size=2>Hi Miller, Tom, &amp; everyone else,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>To remedy the ASIO issue of always using device 0, 
I made a slight modification to s_nt.c.&nbsp; </FONT><FONT face=Arial size=2>I 
changed the call to pa_open_audio, starting at line 1369, to pass the last 
argument (audio device number) as:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>(naudiooutdev &lt; 0 ? -1 : 
audiooutdev[0])</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>instead of:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>(naudiooutdev &gt; 0 ? -1 : 
audiooutdev[0]-1)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>ASIO support can then be invoked by starting PD as 
follows:</FONT></DIV>
<DIV><FONT face=Arial size=2>pd -asio -sounddev {ASIO Device 
Number}.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>(note that a negative ASIO device number will then 
trigger PortAudio to use the default driver)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Attached is the modified s_nt.c.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Chris Campbell</FONT></DIV>
<DIV><FONT face=Arial size=2><A 
href="mailto:cb@inner-ear.net">cb@inner-ear.net</A></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV></BODY></HTML>