1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 19:48:20 +02:00

Fix for channel allocation error

This commit is contained in:
Brian Fiete 2021-12-07 21:41:11 -08:00
parent 6cecbd6c92
commit 195c705a46

View file

@ -192,7 +192,8 @@ namespace SDL2
return; return;
int32 channel = SDLMixer.PlayChannel(-1, sound.mChunk, 0); int32 channel = SDLMixer.PlayChannel(-1, sound.mChunk, 0);
//SDLMixer.SetPanning() if (channel < 0)
return;
SDLMixer.Volume(channel, (int32)(volume * 128)); SDLMixer.Volume(channel, (int32)(volume * 128));
} }