Hi Scott,

Are you on Windows? Did you specify the -in and -out flags? When I last tested 
it, the non-ASIO build doesn't support multi-channel audio. Also, the -dac flag 
needs an extra character before the number.

If you start the ASIO build of ChucK like this, it works.
chuckasio --dac_3 --adc3 --in8 --out8 test.ck

Here, 3 is the audio device number. See 
http://electro-music.com/forum/topic-69370.htmlhttp://electro-music.com/forum/topic-69370.html

   Hope this helps,

          Doug


________________________________
From: chuck-users-boun...@lists.cs.princeton.edu 
[chuck-users-boun...@lists.cs.princeton.edu] on behalf of Scott Smallwood 
[ssmal...@ualberta.ca]
Sent: 18 February 2019 17:45
To: ChucK Users Mailing List
Subject: [chuck-users] Routing stereo sound file to dac channels

Dear chuckians…

This is bizarre… I was sure I have done this in the past, but it isn’t working 
and now I’m a bit flummoxed…. Any ideas here?

PS:  I’m trying to route channels 0 and 1 of a stereo .wav file to dac channels 
2 and 3.  Should be simple.  So why doesn’t this work??

I realize that I could just spit it into mono files… but why?  I thought SndBuf 
supported up to 8 channels.

—


SndBuf sb;

//read in stereo sound file
"snd/squeakies/bell_4.wav" => sb.read;

//works - and routes channel 0 of sb to dac.chan(3)
sb.chan(0) => dac.chan(2);

//doesn't work - claims NullPointerException
sb.chan(1) => dac.chan(3);

1::minute => now;

—ss

[ - ]  Scott Smallwood<http://www.scott-smallwood.com> - Associate Professor - 
University of Alberta  [ - ]



--

TAKE CARE: this message originates from an email service outside of our 
University. Do not click on any links or open attachments unless you recognise 
the sender and are absolutely sure that the content is safe



-- 
Please click here to view our e-mail disclaimer 
http://www.anglia.ac.uk/email-disclaimer

_______________________________________________
chuck-users mailing list
chuck-users@lists.cs.princeton.edu
https://lists.cs.princeton.edu/mailman/listinfo/chuck-users

Reply via email to