veins1
veins1
> Able to reproduce a similar issue with the `audio_music_stream` example if you delete `resources/country.mp3`. > > ``` > WARNING: FILEIO: [resources/country.mp3] Music file could not be opened > INFO:...
@raysan5 To reproduce you can create an empty file and rename it to file.mp3 . Then modify audio_music_stream.c so that it loads this file.
Couldn't reproduce the .wav crash, but going through the code in a debugger, drwav_uninit doesn't do anything useful in our case. I think it's safe to remove it, can you...
I looked into this a bit and here's what I found: in miniaudio.h -> ma_context_get_MMDevice__wasapi there is a call to ma_CoCreateInstance . It works initially on launch of the program...
Here's my attempt to figure this out: https://github.com/raysan5/raylib/issues/3743#issuecomment-1925792674 Maybe I'm wrong in my conclusion, but surrounding ma_CoCreateInstance with ma_CoInitializeEx and ma_CoUninitialize stops the crashing and correctly switches audio device.
@karl-zylinski As per MSDN (https://learn.microsoft.com/en-us/windows/desktop/api/combaseapi/nf-combaseapi-couninitialize): > To close the COM library gracefully on a thread, each successful call to [CoInitialize](https://learn.microsoft.com/en-us/windows/desktop/api/objbase/nf-objbase-coinitialize) or CoInitializeEx, including any call that returns S_FALSE, must be...
This is a good starting place: https://jorenjoestar.github.io/post/pixel_art_filtering/ A better place to ask about these kind of things is raylib discord. Github issues are for a different purpose.
Regarding point C: Is there a reason to store the desired width and height inside raylib rather then passing them directly to something like ToggleFullscreenEx(int width, int height) ? And...
@asdqwe It's fine, GLFW sets it to the closest valid mode.
If `IsKeyPressed` and `IsKeyReleased` are supposed to return whether a key was pressed or released at least once from the last frame then that seems very easy to implement. The...