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:
parent
6cecbd6c92
commit
195c705a46
1 changed files with 2 additions and 1 deletions
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue