[chuck-dev] Where does the Chuck_VM_Shreduler::now_system attribute get incremented?

Philipp Kroos philipp.kroos at gmail.com
Tue Sep 16 13:07:23 EDT 2014

I found these:
src/chuck_vm.cpp:2098:    this->now_system += numFrames;
src/chuck_vm.cpp:2165:    this->now_system += 1;
src/chuck_vm.cpp:2208:    this->now_system += 1;

These occur in the advance*-functions, which in turn are called from
Chuck_VM::run( t_CKINT num_samps ).
run is for example called from the main function or from
digiio_rtaudio.cpp:906: vm_ref->run( buffer_size );

(current source code)

Hth, Philipp

On Tue, Sep 16, 2014 at 1:21 PM, Arve Knudsen <arve.knudsen at gmail.com>

> Hi
> In trying to auto-port ChucK to JavaScript through Emscripten, I am
> experiencing that the JavaScript version of ChucK's system clock
> (i.e., Chuck_VM_Shreduler::now_system), gets incremented by two seconds
> (i.e. 88200) for some reason I don't yet understand. Only 4096 samples have
> been processed at that point.
> Could someone be so kind as to point out in which parts of ChucK
> now_system gets incremented, to help me debug this issue?
> Thanks!
> Arve
> _______________________________________________
> chuck-dev mailing list
> chuck-dev at lists.cs.princeton.edu
> https://lists.cs.princeton.edu/mailman/listinfo/chuck-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cs.princeton.edu/pipermail/chuck-dev/attachments/20140916/3a55d9aa/attachment.html>

More information about the chuck-dev mailing list