Let's try that again, with the attachment this time.
(sorry!)
 
 
----- Original Message -----
From: cb
To: pd-list@iem.kug.ac.at
Sent: Saturday, May 18, 2002 1:33 PM
Subject: Re: [PD] ASIO (bug?)

Hi Miller, Tom, & everyone else,
 
To remedy the ASIO issue of always using device 0, I made a slight modification to s_nt.c.  I changed the call to pa_open_audio, starting at line 1369, to pass the last argument (audio device number) as:
 
(naudiooutdev < 0 ? -1 : audiooutdev[0])
 
instead of:
 
(naudiooutdev > 0 ? -1 : audiooutdev[0]-1)
 
 
ASIO support can then be invoked by starting PD as follows:
pd -asio -sounddev {ASIO Device Number}.
 
(note that a negative ASIO device number will then trigger PortAudio to use the default driver)
 
 
Attached is the modified s_nt.c.
 
Chris Campbell
cb@inner-ear.net