diff options
| author | Yang Liu <liuyang22@iscas.ac.cn> | 2023-05-07 22:13:56 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-07 16:13:56 +0200 |
| commit | 9f38e81735b10668d64974033b4bb5097219ee34 (patch) | |
| tree | 57827cc130a3e79a46c58f4e5ce8946c78f4131a /src/wrapped/wrappedlibasound.c | |
| parent | 47ecde75ec19a58f458c1131ec1968d11d58e7e1 (diff) | |
| download | box64-9f38e81735b10668d64974033b4bb5097219ee34.tar.gz box64-9f38e81735b10668d64974033b4bb5097219ee34.zip | |
[WRAPPER] Used RunFunctionFmt for better sign-extend handling (#768)
* [WRAPPER] Used RunFunctionFmt for better sign-extend handling * [WRAPPER] Fixed some typos * [WRAPPER] Use L for unsigned long for better portability * [WRAPPER] More replace from U to L
Diffstat (limited to 'src/wrapped/wrappedlibasound.c')
| -rwxr-xr-x | src/wrapped/wrappedlibasound.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/wrapped/wrappedlibasound.c b/src/wrapped/wrappedlibasound.c index b28a36ba..74910772 100755 --- a/src/wrapped/wrappedlibasound.c +++ b/src/wrapped/wrappedlibasound.c @@ -47,10 +47,10 @@ GO(3) // snd_async_callback_t #define GO(A) \ -static uintptr_t my_async_fct_##A = 0; \ -static void* my_async_##A(void* handler) \ -{ \ - return (void*)RunFunction(my_context, my_async_fct_##A, 1, handler);\ +static uintptr_t my_async_fct_##A = 0; \ +static void* my_async_##A(void* handler) \ +{ \ + return (void*)RunFunctionFmt(my_context, my_async_fct_##A, "p", handler); \ } SUPER() #undef GO @@ -69,10 +69,10 @@ static void* findAsyncFct(void* fct) } // snd_mixer_elem_callback_t #define GO(A) \ -static uintptr_t my_elem_fct_##A = 0; \ -static int my_elem_##A(void* elem, uint32_t mask) \ -{ \ - return (int)RunFunction(my_context, my_elem_fct_##A, 2, elem, mask);\ +static uintptr_t my_elem_fct_##A = 0; \ +static int my_elem_##A(void* elem, uint32_t mask) \ +{ \ + return (int)RunFunctionFmt(my_context, my_elem_fct_##A, "pu", elem, mask); \ } SUPER() #undef GO |