Sound ready.

This commit is contained in:
oz committed 2021-01-23 19:28:29 +03:00
1 parent 7d15427dd9
commit b0080fd80a
11 files changed
+363 -21

No files matched your search

+1 -1
View File
@@ -325,7 +325,7 @@ float loader::play_sound(int soundIndex)
{
if (soundIndex <= 0)
return 0.0;
Sound::PlaySound((int)sound_list[soundIndex].WavePtr, 0, 7, 5, 0);
Sound::PlaySound(sound_list[soundIndex].WavePtr, 0, 7, WMIX_HIPRIORITY | WMIX_CLEARQUEUE, 0);
return sound_list[soundIndex].Duration;
}