diff options
author | James <james@mackie.(none)> | 2007-06-29 19:53:18 (GMT) |
---|---|---|
committer | James <james@mackie.(none)> | 2007-06-29 19:53:18 (GMT) |
commit | ff7047704c052f9df4e900d304961a45149a35b2 (patch) | |
tree | d6f0cf49dee5113db1a7d0bc3d2e3cd5ce6561d9 /Util/CSoundClient.py | |
parent | 601e1f48e93d7768736cbb2d54015ed2776e5845 (diff) |
samplerate, adjustTick
Diffstat (limited to 'Util/CSoundClient.py')
-rw-r--r-- | Util/CSoundClient.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Util/CSoundClient.py b/Util/CSoundClient.py index 1ef6f24..9afae70 100644 --- a/Util/CSoundClient.py +++ b/Util/CSoundClient.py @@ -31,7 +31,8 @@ class _CSoundClientPlugin: def __init__(self): sc_initialize( Config.PLUGIN_UNIVORC, Config.PLUGIN_DEBUG, Config.PLUGIN_PERIOD, Config.PLUGIN_NPERIODS, - Config.PLUGIN_VERBOSE) + Config.PLUGIN_VERBOSE, + Config.PLUGIN_KSMPS, Config.PLUGIN_RATE) self.on = False #self.masterVolume = 80.0 self.periods_per_buffer = 2 @@ -122,6 +123,8 @@ class _CSoundClientPlugin: sc_loop_setNumTicks(n) def loopSetTickDuration(self,d): sc_loop_setTickDuration(d) + def loopAdjustTick(self,d): + sc_loop_adjustTick(d) def loopSetTempo(self,t): if (Config.DEBUG > 3) : print 'INFO: loop tempo: %f -> %f' % (t, 60.0 / (Config.TICKS_PER_BEAT * t)) sc_loop_setTickDuration( 60.0 / (Config.TICKS_PER_BEAT * t)) |