[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-dev] Pbind dependency on TempoClock.default and mute in EventStreamPlayer




On Dec 2, 2003, at 3:20 AM, nikolai collinsky wrote:

(2)

Is there a reason that EventStreamPlayer-mute use the
muteCount variable? If you accidentally call mute or
unmute twice, you lose toggling ability- muteCount=1;
and muteCount=0 would be sufficient surely?

This is so multiple threads can mute a process and then unmute it and it gets back to the correct state.
If your code is accidentally muting twice, that is a bug in your code.

--
--- james mccartney   james@xxxxxxxxxxxxxx   <http://www.audiosynth.com>
SuperCollider - a real time audio synthesis programming language