class library: Volume - remove debug message
[supercollider.git] / SCClassLibrary / Common / Streams / FuncStreamAsRoutine.sc
blobc9941e8d42ea6241933513ad1ae9c7ef1f28ea77
1 FuncStreamAsRoutine : Routine {
2         var <>nextFunc;
3         var <>resetFunc;
5         *new { arg nextFunc, resetFunc;
6                 ^super.new({ arg inval;
7                         loop {
8                                 inval = yield(thisThread.nextFunc.value(inval))
9                         }
10                 })
11                 .nextFunc_(nextFunc).resetFunc_(resetFunc)
12         }
14         reset { ^resetFunc.value }