From 7a7857f47b33f1b63fb585d2dc6c60d87c3e928f Mon Sep 17 00:00:00 2001 From: aliaspider Date: Mon, 9 Nov 2015 19:55:28 +0100 Subject: C++ --> C99 --- src/soundux.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/soundux.h') diff --git a/src/soundux.h b/src/soundux.h index 4b313df..9d084bd 100644 --- a/src/soundux.h +++ b/src/soundux.h @@ -270,6 +270,7 @@ static inline void S9xSetEnvRate (Channel *ch, unsigned long rate, int direction static inline void S9xSetEchoEnable (uint8 byte) { + int i; SoundData.echo_channel_enable = byte; if (!SoundData.echo_write_enabled || Settings.DisableSoundEcho) byte = 0; @@ -280,7 +281,7 @@ static inline void S9xSetEchoEnable (uint8 byte) } SoundData.echo_enable = byte; - for (int i = 0; i < 8; i++) + for (i = 0; i < 8; i++) { if (byte & (1 << i)) SoundData.channels [i].echo_buf_ptr = EchoBuffer; -- cgit v1.2.3