shithub: candycrisis

Download patch

ref: 0ddd0f41a729b1d90ba39fe02e3403f54bd531da
parent: 90412b93ed75f9d15b152e1512984aef242a579a
author: Iliyas Jorio <[email protected]>
date: Wed Jul 12 13:34:46 EDT 2023

Fix minor warnings

--- a/src/soundfx.c
+++ b/src/soundfx.c
@@ -40,17 +40,17 @@
     cmixer_ShutdownWithSDL();
 }
 
-void PlayMono( short which )
+void PlayMono( int which )
 {
     PlayStereoFrequency(2, which, 0);
 }
 
-void PlayStereo( short player, short which )
+void PlayStereo( int player, short which )
 {
     PlayStereoFrequency(player, which, 0);
 }
 
-void PlayStereoFrequency( short player, short which, short freq )
+void PlayStereoFrequency( int player, short which, short freq )
 {
     if (soundOn)
     {
--- a/src/soundfx.h
+++ b/src/soundfx.h
@@ -3,9 +3,9 @@
 
 void InitSound();
 void ShutdownSound();
-void PlayStereo( short player, short which );
-void PlayStereoFrequency( short player, short which, short freq );
-void PlayMono( short which );
+void PlayStereo( int player, short which );
+void PlayStereoFrequency( int player, short which, short freq );
+void PlayMono( int which );
 void UpdateSound();
 
 enum