audio: add PortAudio version string for debugging

This commit is contained in:
Roman Zeyde
2015-01-17 09:04:34 +02:00
parent 5c4849be1c
commit 35487966d8
2 changed files with 2 additions and 0 deletions

View File

@@ -169,6 +169,7 @@ def main():
if args.quiet:
level, format = 'WARNING', '%(message)s'
logging.basicConfig(level=level, format=format)
log.info('Interface "%s" loaded succesfully', interface.version)
# Parsing and execution
log.debug(description)

View File

@@ -11,6 +11,7 @@ class Interface(object):
self.config = config
self.streams = []
assert self._error_string(0) == 'Success'
self.version = self.call('GetVersionText', restype=ctypes.c_char_p)
def _error_string(self, code):
return self.call('GetErrorText', code, restype=ctypes.c_char_p)