From a71c33f49a81f4e3fa037fe6070a2392e5a2e235 Mon Sep 17 00:00:00 2001 From: Matt Bullock Date: Mon, 2 Jan 2023 12:45:30 -0600 Subject: [PATCH] specify param types for arm64 macos --- discord/opus.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/discord/opus.py b/discord/opus.py index 84e3cea612..abb64029d3 100644 --- a/discord/opus.py +++ b/discord/opus.py @@ -147,7 +147,7 @@ def _err_ne(result: T, func: Callable, args: list) -> T: # The fourth is the error handler. exported_functions: list[tuple[Any, ...]] = [ # Generic - ("opus_get_version_string", None, ctypes.c_char_p, None), + ("opus_get_version_string", [], ctypes.c_char_p, None), ("opus_strerror", [ctypes.c_int], ctypes.c_char_p, None), # Encoder functions ("opus_encoder_get_size", [ctypes.c_int], ctypes.c_int, None), @@ -169,7 +169,7 @@ def _err_ne(result: T, func: Callable, args: list) -> T: ctypes.c_int32, _err_lt, ), - ("opus_encoder_ctl", None, ctypes.c_int32, _err_lt), + ("opus_encoder_ctl", [EncoderStructPtr, ctypes.c_int], ctypes.c_int32, _err_lt), ("opus_encoder_destroy", [EncoderStructPtr], None, None), # Decoder functions ("opus_decoder_get_size", [ctypes.c_int], ctypes.c_int, None), @@ -205,7 +205,7 @@ def _err_ne(result: T, func: Callable, args: list) -> T: ctypes.c_int, _err_lt, ), - ("opus_decoder_ctl", None, ctypes.c_int32, _err_lt), + ("opus_decoder_ctl", [DecoderStructPtr, ctypes.c_int], ctypes.c_int32, _err_lt), ("opus_decoder_destroy", [DecoderStructPtr], None, None), ( "opus_decoder_get_nb_samples",