diff --git a/audio.py b/audio.py index e385cd7..94ace5b 100644 --- a/audio.py +++ b/audio.py @@ -41,14 +41,13 @@ def init(freq=48000): """ Initialize BASS and the opus plugin """ - global dll, bassmidi, use_ctypes + global dll, use_ctypes if not dll: if platform.system() == "Darwin": dll = ctypes.CDLL(dllf) use_ctypes = True else: import pybass as dll - import pybass.pybassmidi as bassmidi if not dll.BASS_Init(ini.read_ini_int("AO2XP.ini", "Audio", "device", -1), freq, 0, 0, 0): print "[audio] Audio library could not be initialized. Error", getBassError() @@ -95,12 +94,6 @@ def loadMOD(mem, file, offset=0, length=0, flags=0): Load a BASS module file """ return dll.BASS_MusicLoad(mem, file, QWORD(offset), length, flags, 0) - -def loadMIDI(mem, file, offset=0, length=0, flags=0): - """ -Load a BASS stream handle - """ - return bassmidi.BASS_MIDI_StreamCreateFile(mem, file, QWORD(offset), QWORD(length), flags, 0) def freeHandle(handle): """