From 4299e0a3a3b0eba117ad83c8504cec7d8c0a64ce Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Tue, 24 Sep 2024 14:13:33 +0200 Subject: [BOX32][WRAPPER] Added more 32bits wrapped functions --- src/include/sdl1align32.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'src/include') diff --git a/src/include/sdl1align32.h b/src/include/sdl1align32.h index c7e8c1f2..66153621 100644 --- a/src/include/sdl1align32.h +++ b/src/include/sdl1align32.h @@ -495,6 +495,7 @@ typedef union my_SDL_Event_32_s void convert_SDL_Event_to_32(void* dst, const void* src); +void convert_SDL_Event_to_64(void* dst, const void* src); // simplified RWops typedef struct my_SDL_RWops_s { @@ -556,4 +557,35 @@ typedef struct my_SDL_VideoInfo_32_s { int current_h; } my_SDL_VideoInfo_32_t; +typedef struct my_SDL_AudioCVT_s { + int needed; + uint16_t src_format; + uint16_t dest_format; + double rate_incr; + uint8_t *buf; + int len; + int len_cvt; + int len_mult; + double len_ratio; + void (*filters[10])(struct my_SDL_AudioCVT_s *cvt, uint16_t format); + int filter_index; +} my_SDL_AudioCVT_t; + +typedef struct my_SDL_AudioCVT_32_s { + int needed; + uint16_t src_format; + uint16_t dest_format; + double rate_incr; + ptr_t buf; //uint8_t * + int len; + int len_cvt; + int len_mult; + double len_ratio; + ptr_t filters[10]; //void (*filters[10])(struct my_SDL_AudioCVT_s *cvt, uint16_t format); + int filter_index; +} my_SDL_AudioCVT_32_t; + +void convert_AudioCVT_to_32(void* d, void* s); +void convert_AudioCVT_to_64(void* d, void* s); + #endif//__MY_SDL1ALIGN32_H_ \ No newline at end of file -- cgit 1.4.1