Skip to content

Commit 5145f75

Browse files
committed
Make mixer optional in MIX_LoadRawAudio_IO
1 parent 55a39d0 commit 5145f75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SDL_mixer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1168,7 +1168,7 @@ MIX_Audio *MIX_LoadAudio(MIX_Mixer *mixer, const char *path, bool predecode)
11681168

11691169
MIX_Audio *MIX_LoadRawAudio_IO(MIX_Mixer *mixer, SDL_IOStream *io, const SDL_AudioSpec *spec, bool closeio)
11701170
{
1171-
if (!CheckMixerParam(mixer)) {
1171+
if (!CheckInitialized()) {
11721172
if (io && closeio) { SDL_CloseIO(io); }
11731173
return NULL;
11741174
} else if (!io) {

0 commit comments

Comments
 (0)