[chuck-users] SndBuf causes hickup

ssalazar at CS.Princeton.EDU ssalazar at CS.Princeton.EDU
Tue Jun 12 21:11:33 EDT 2007

Quoting Atte André Jensen <atte.jensen at gmail.com>:

> Is there any greater truth hidden in the fact that you don't connect b
> to dac above?


> Where to go from here?

Hmm, thats surprising... the backup solution is to load all of the 
SndBuf's that you could possibly need in advance, before the your 
patches do any actual synthesis.  That way there can't be any hiccuping 
because there is nothing to hiccup.  This is pretty easy in a single 
file program-- just load the SndBufs before you advance time.  For 
ChucK programs that involve multiple ChucK files going in and out of 
the virtual machine and loading different WAV files, you could probably 
create some public class with an array of static SndBufs that get 
loaded at the very beginning.  Then, instead of creating SndBufs on the 
fly, just access the public class static members.  This should cover a 
lot of potential usages of SndBuf, but definitely not all of them.


> --
> peace, love & harmony
> Atte
> http://atte.dk       | http://myspace.com/attejensen
> http://anagrammer.dk | http://atte.dk/compositions
> _______________________________________________
> chuck-users mailing list
> chuck-users at lists.cs.princeton.edu
> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users

More information about the chuck-users mailing list