diff options
author | aliaspider | 2015-11-09 19:55:28 +0100 |
---|---|---|
committer | aliaspider | 2015-11-09 19:55:28 +0100 |
commit | 7a7857f47b33f1b63fb585d2dc6c60d87c3e928f (patch) | |
tree | a4c271ae26c4b5ec9566f37062168e6d2c8c1bbc /src/soundux.h | |
parent | 5339c79ebd36afa759541d0c2fbdadac6dd26ed2 (diff) | |
download | snes9x2002-7a7857f47b33f1b63fb585d2dc6c60d87c3e928f.tar.gz snes9x2002-7a7857f47b33f1b63fb585d2dc6c60d87c3e928f.tar.bz2 snes9x2002-7a7857f47b33f1b63fb585d2dc6c60d87c3e928f.zip |
C++ --> C99
Diffstat (limited to 'src/soundux.h')
-rw-r--r-- | src/soundux.h | 3 |
1 files changed, 2 insertions, 1 deletions
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;
|