aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormeepingsnesroms2016-10-16 11:07:08 -0700
committermeepingsnesroms2016-10-16 11:07:08 -0700
commite2eb2ce8c9c2c8731d8fcffedaf8a6a40346b69a (patch)
treeb221e0550bebd9c474be978acf6a5dc5a2fd4221
parente0fea5a2814b07b527ce2cf7201437a00750b676 (diff)
downloadsnes9x2005-e2eb2ce8c9c2c8731d8fcffedaf8a6a40346b69a.tar.gz
snes9x2005-e2eb2ce8c9c2c8731d8fcffedaf8a6a40346b69a.tar.bz2
snes9x2005-e2eb2ce8c9c2c8731d8fcffedaf8a6a40346b69a.zip
Remove unused variables.
-rw-r--r--libretro.c4
-rw-r--r--source/apu.h2
-rw-r--r--source/soundux.c5
3 files changed, 3 insertions, 8 deletions
diff --git a/libretro.c b/libretro.c
index 16f9cf2..7f26a19 100644
--- a/libretro.c
+++ b/libretro.c
@@ -443,9 +443,7 @@ void retro_init(void)
S9xSetSamplesAvailableCallback(S9xAudioCallback);
#else
- S9xInitSound(Settings.SoundPlaybackRate,
- true,
- Settings.SoundBufferSize);
+ S9xInitSound();
#endif
environ_cb(RETRO_ENVIRONMENT_SET_VARIABLES, (void*)vars);
diff --git a/source/apu.h b/source/apu.h
index 4d01447..b09f3c4 100644
--- a/source/apu.h
+++ b/source/apu.h
@@ -160,7 +160,7 @@ void S9xSetAPUControl(uint8_t byte);
void S9xSetAPUDSP(uint8_t byte);
uint8_t S9xGetAPUDSP();
void S9xSetAPUTimer(uint16_t Address, uint8_t byte);
-bool S9xInitSound(int quality, bool stereo, int buffer_size);
+bool S9xInitSound();
void S9xOpenCloseSoundTracingFile(bool);
void S9xPrintAPUState();
extern uint16_t S9xAPUCycles [256]; // Scaled cycle lengths
diff --git a/source/soundux.c b/source/soundux.c
index 66af26b..c122859 100644
--- a/source/soundux.c
+++ b/source/soundux.c
@@ -1238,7 +1238,7 @@ void S9xSetPlaybackRate(uint32_t playback_rate)
S9xSetSoundFrequency(i, SoundData.channels [i].hertz);
}
-bool S9xInitSound(int mode, bool stereo, int buffer_size)
+bool S9xInitSound()
{
so.sound_fd = -1;
so.sound_switch = 255;
@@ -1247,9 +1247,6 @@ bool S9xInitSound(int mode, bool stereo, int buffer_size)
so.buffer_size = 0;
so.encoded = false;
- if (!(mode & 7))
- return (1);
-
return (1);
}