The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.
SDL
Simple Directmedia Layer Forums
Discrepancy in Mix_LoadMUSType_RW, an API in SDL2_mixer
yashvardhan90
Joined: 09 Jul 2015
Posts: 1
Posted: Thu Jul 09, 2015 8:56 am
Hi
I've found a discrepancy in the API Mix_LoadMUSType_RW, it takes parameters SDL_RWops * and Mix_MusicType type but there is no check to detect whether the passed pointer and type are of the same type.
For example
I passed SDL_RWops * for a WAV file and specified type as MUS_MP3 ( by mistake ) yet the API returned a pointer instead of NULL.