Ryan C. Gordon
Ryan C. Gordon
Interesting: audio is bad if recording when loopwave is started, too, so it's not that the format _changed_ on us.
This is just as stupid as using more AudioQueueBuffers. I changed it from 2 to 4 and it works just fine without looking for device property changes. I'm going to...
(This was an _excellent_ bug report...thank you for being so thorough!) This is SDL2-specifc, even though it landed in the 3.2.0 milestone, fwiw. All this code was almost completely replaced...
Can you add `-sdlaudiodriver pulseaudio` to your launch options? I want to see if this is a bug in SDL's PipeWire support. It's okay if the system is using PipeWire's...
I would _really_ like this to use nearest scaling, so no fight from me on this. Let's merge it!
I pushed a fix for one leak that's in sdl2-compat itself, but almost all of these are under SDL_DBus_Init() in SDL3....rather, they are in libdbus, called into from SDL_DBus_Init(). But...
Arch can do what it wants, but it's a small, one-time memory leak that we'll probably fix shortly.
More notes on memory leaks: We call XrmInitialize() in the X11 backend, which allocates memory it never frees behind our backs. https://github.com/ghaerr/nxlib/blob/68f61d915b28f00ceaa97301bd5a2c0fb7258f12/Xrm.c#L323-L327 This eventually ends up in a variable they...
Anyhow, tl;dr: (stop using X11 and then) export SDL_VIDEO_DRIVER=wayland and SDL_SHUTDOWN_DBUS_ON_QUIT=1 and AddressSanitizer will (probably) find zero leaks.
Sorry, I was being glib. The "stop using x11" comment was obviously not intended to be a real solution. But I can't free memory I didn't allocate and don't even...