mirror of
https://github.com/romanz/amodem.git
synced 2026-03-24 19:31:02 +08:00
audio: add PortAudio version string for debugging
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user