From ac7689264ec37623f67d18ca09ecd6ed88557672 Mon Sep 17 00:00:00 2001 From: Aaron Giles Date: Sat, 8 Nov 2008 21:12:38 +0000 Subject: Star Castle drone sound improvement from Jim Hernandez. --- src/mame/audio/cinemat.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/mame/audio/cinemat.c b/src/mame/audio/cinemat.c index dbb1e3d5ef3..b91e033c82c 100644 --- a/src/mame/audio/cinemat.c +++ b/src/mame/audio/cinemat.c @@ -9,6 +9,8 @@ 6/27/99 Jim Hernandez -- 1st Attempt at Fixing Drone Star Castle sound and pitch adjustments. 6/30/99 MLR added Rip Off, Solar Quest, Armor Attack (no samples yet) + 11/04/08 Jim Hernandez -- Fixed Drone Star Castle sound again. It was + broken for a long time due to some changes. Bugs: Sometimes the death explosion (small explosion) does not trigger. @@ -114,7 +116,7 @@ static void generic_init(running_machine *machine, void (*callback)(UINT8, UINT8 last_frame = 0; /* reset Star Castle pitch */ - current_pitch = 0x20000; + current_pitch = 0x10000; /* register for save states */ state_save_register_global(sound_control); @@ -868,15 +870,15 @@ static void starcas_sound_w(UINT8 sound_val, UINT8 bits_changed) /* latch the drone pitch */ target_pitch = (current_shift & 7) + ((current_shift & 2) << 2); - target_pitch = 0x10000 + (target_pitch << 12); + target_pitch = 0x5800 + (target_pitch << 12); /* once per frame slide the pitch toward the target */ if (video_screen_get_frame_number(Machine->primary_screen) > last_frame) { if (current_pitch > target_pitch) - current_pitch -= 300; + current_pitch -= 225; if (current_pitch < target_pitch) - current_pitch += 200; + current_pitch += 150; sample_set_freq(4, current_pitch); last_frame = video_screen_get_frame_number(Machine->primary_screen); } -- cgit v1.2.3