Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Util/CSoundClient.py
diff options
context:
space:
mode:
authorJames <james@mackie.fourth>2007-03-17 18:37:52 (GMT)
committer James <james@mackie.fourth>2007-03-17 18:37:52 (GMT)
commitfec8aed1a6d1b01d1314ab144bd5698c43266ed5 (patch)
tree8c11ac399c114901710cb713199d107a5a53d8c1 /Util/CSoundClient.py
parent6292d23393ae45731f2393cc6ed265a2252a653a (diff)
new more robust alsa
Diffstat (limited to 'Util/CSoundClient.py')
-rw-r--r--Util/CSoundClient.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Util/CSoundClient.py b/Util/CSoundClient.py
index 0b21d20..12bd698 100644
--- a/Util/CSoundClient.py
+++ b/Util/CSoundClient.py
@@ -1,4 +1,3 @@
-import csnd
import os
import socket
import select
@@ -14,8 +13,9 @@ from Util.Clooper.aclient import *
from Util import NoteDB
class _CSoundClientPlugin:
- def __init__(self, orc, logpath=""):
- sc_initialize(orc, logpath)
+ def __init__(self):
+ sc_initialize( Config.PLUGIN_UNIVORC, Config.PLUGIN_DEBUG,
+ Config.PLUGIN_PERIOD, Config.PLUGIN_NPERIODS)
self.on = False
#self.masterVolume = 80.0
self.periods_per_buffer = 2
@@ -270,7 +270,7 @@ _Client = None
def new_csound_client():
global _Client
if _Client == None:
- _Client = _CSoundClientPlugin( Config.TAM_TAM_ROOT + '/Resources/univorc.csd' )
+ _Client = _CSoundClientPlugin()
_Client.connect(True)
_Client.setMasterVolume(100.0)
_Client.load_instruments()