diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2024-09-24 14:13:33 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2024-09-24 14:13:45 +0200 |
| commit | 4299e0a3a3b0eba117ad83c8504cec7d8c0a64ce (patch) | |
| tree | def202c91541ad69d2651072dec238341bf0ccd9 /src/include | |
| parent | c4af15c2e210a91a30c974901468650533918d39 (diff) | |
| download | box64-4299e0a3a3b0eba117ad83c8504cec7d8c0a64ce.tar.gz box64-4299e0a3a3b0eba117ad83c8504cec7d8c0a64ce.zip | |
[BOX32][WRAPPER] Added more 32bits wrapped functions
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/sdl1align32.h | 32 |
1 files changed, 32 insertions, 0 deletions
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 |