audio: fix for Python3

This commit is contained in:
Roman Zeyde
2015-01-17 18:27:10 +02:00
parent 81165799fd
commit ee7db32418

View File

@@ -10,7 +10,7 @@ class Interface(object):
self.lib = ctypes.CDLL(name)
self.config = config
self.streams = []
assert self._error_string(0) == 'Success'
assert self._error_string(0) == b'Success'
self.version = self.call('GetVersionText', restype=ctypes.c_char_p)
def _error_string(self, code):