[chuck-users] sndbuf.pos

eduard eduard.aylon at gmail.com
Sun Dec 4 15:29:13 EST 2005


Hello all,

I have a question for whoever is willing to answer it.

Has one to always set sndbuf.pos at each iteration?

My scenario:
Let's say I want to control the starting position of my sndbuf with a  
midi keyboard while sndbuf is set to loop mode ( 1 => sndbuf.loop ).
Midi is received in a sporked MidiReceive() function and my  
sndbuf.pos is set inside this same function and not in the main while- 
loop.
Thus when I press a key the sndbuf.pos is changed for that loop, but  
when it gets to the end of it, it starts at sndbuf.pos(0) instead of  
the previously set one.
So it seems that sndbuf doesn't keep track of the position that was  
set, and automatically starts from the beginning when the end of the  
audiofile is reached.

Is this true?


Thanks,

Eduard


More information about the chuck-users mailing list