HamRemote/opus/api/info.py
2023-02-09 08:33:01 +01:00

18 lines
455 B
Python

# -*- coding: utf-8 -*-
import ctypes
from opus.api import libopus
strerror = libopus.opus_strerror
strerror.argtypes = (ctypes.c_int,)
strerror.restype = ctypes.c_char_p
strerror.__doc__ = '''Converts an opus error code into a human readable string'''
get_version_string = libopus.opus_get_version_string
get_version_string.argtypes = None
get_version_string.restype = ctypes.c_char_p
get_version_string.__doc__ = 'Gets the libopus version string'