Sylvain Becker

Results 199 comments of Sylvain Becker

Btw, the convenient script, I used. for quickly iterating source/build/install : ``` #!/bin/sh APP=$1 # Check the error-code is 0, or exit with error message check_cmd() { RET=$1 STR=$2 if...

Indeed, IDs as now more conventional with SDL3 So 'flows' are somehow DataStream attached to a device. So the device has to do some mixing when there are multiples flow...

`+extern DECLSPEC SDL_AudioFlow SDLCALL SDL_CreateAudioFlow(SDL_AudioDeviceID device, SDL_AudioFormat fmt, Uint8 channels, Uint32 freq, SDL_AudioCallback callback, void *userdata);` Maybe this could really be a an AudioStream like: `SDL_AudioStream SDLCALL SDL_CreateAudioStream(SDL_AudioDeviceID device, ...`....

another thought: maybe instead of explicit audiostream, the API could be using RWops with specif audio function underneath (like it's done for image, etc.)

Here's some example for SDL Location API, on linux/dbus ! https://github.com/libsdl-org/SDL/pull/7849

btw, there was: something here for macos: https://github.com/whisthq/SDL/pull/4 https://github.com/whisthq/SDL/pull/25/ (from https://github.com/libsdl-org/SDL/issues/7265)

@oddbookworm that sounds really strange, since it's common function and has lots of checks: https://github.com/libsdl-org/SDL/blob/main/src/video/SDL_surface.c#L666 can you try a c test case ? double-check your sdl version ?

yes, the is a bug here.... here the same sample case that crashes with SDL3: ``` #include #include int main(void) { SDL_Init(SDL_INIT_VIDEO); SDL_Window *window = SDL_CreateWindow("Test", 385, 166, 0); SDL_Surface...

I've a diff that isn't working yet: I think the clipping shouldn't be inlined, and it would be better to use SDL_GetRectIntersection functions, so that the blit looks like this....

@weirddan455 hey can you try the previous patch ! that should fix the issue !