aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgameblabla2019-10-07 07:29:41 +0200
committergameblabla2019-10-07 07:29:41 +0200
commit3a72f304ac361da7eb681a457e66e85d51b9912f (patch)
tree4218ea895de26769a17d9dff59bf5e33ed9eec24
parent9bc385d3c340f4d42d393254200510ae7f9534dc (diff)
downloadsnesemu-3a72f304ac361da7eb681a457e66e85d51b9912f.tar.gz
snesemu-3a72f304ac361da7eb681a457e66e85d51b9912f.tar.bz2
snesemu-3a72f304ac361da7eb681a457e66e85d51b9912f.zip
Fix missing audio in Star Ocean and other games.
-rw-r--r--shell/emu/core.c14
-rw-r--r--shell/headers/shared.h2
2 files changed, 8 insertions, 8 deletions
diff --git a/shell/emu/core.c b/shell/emu/core.c
index 2edc457..be99e72 100644
--- a/shell/emu/core.c
+++ b/shell/emu/core.c
@@ -344,9 +344,9 @@ void init_sfc_setting(void)
Settings.MultiPlayer5 = true;
Settings.ControllerOption = SNES_JOYPAD;
#ifdef USE_BLARGG_APU
- Settings.SoundSync = false;
+ Settings.SoundSync = true;
#endif
- Settings.ApplyCheats = true;
+ Settings.ApplyCheats = false;
Settings.HBlankStart = (256 * Settings.H_Max) / SNES_HCOUNTER_MAX;
}
@@ -393,16 +393,16 @@ int main(int argc, char* argv[])
}
snprintf(GameName_emu, sizeof(GameName_emu), "%s", basename(argv[1]));
+ Init_SFC();
+
Init_Video();
+ Audio_Init();
- overclock_cycles = true;
+ overclock_cycles = false;
one_c = 4;
slow_one_c = 5;
two_c = 6;
- reduce_sprite_flicker = true;
-
- Audio_Init();
- Init_SFC();
+ reduce_sprite_flicker = false;
isloaded = Load_Game_Memory(argv[1]);
if (!isloaded)
diff --git a/shell/headers/shared.h b/shell/headers/shared.h
index a44f60e..b173506 100644
--- a/shell/headers/shared.h
+++ b/shell/headers/shared.h
@@ -1,7 +1,7 @@
#ifndef SHARED_H
#define SHARED_H
-#define SOUND_OUTPUT_FREQUENCY 44100
+#define SOUND_OUTPUT_FREQUENCY 32000
#define SOUND_SAMPLES_SIZE 1024
/*