From 4c33d7af7ce4a41b82d4963de5b11f01c4e2bb4c Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 20 Aug 2012 21:05:37 +0200 Subject: [PATCH] Revert "(Xbox 1) Fixed Xbox 1 crash - the problem was that there are (non-static)" This reverts commit 86254071be586c2b7ce935408dec00d29b6d1e34. --- .../msvc-2003-xbox1/msvc-2003-xbox1.vcproj | 93 ------------------- source/sound/ym2413.c | 12 ++- source/sound/ym2612.c | 4 +- 3 files changed, 9 insertions(+), 100 deletions(-) diff --git a/libretro/msvc/msvc-2003-xbox1/msvc-2003-xbox1.vcproj b/libretro/msvc/msvc-2003-xbox1/msvc-2003-xbox1.vcproj index 67f6705..5a3a36c 100644 --- a/libretro/msvc/msvc-2003-xbox1/msvc-2003-xbox1.vcproj +++ b/libretro/msvc/msvc-2003-xbox1/msvc-2003-xbox1.vcproj @@ -200,39 +200,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - SLOT[slot&1]; + SLOT->sl = sl_tab[ v>>4 ]; + SLOT->rr = (v&0x0f)? 16 + ((v&0x0f)<<2) : 0; SLOT->eg_sh_rr = eg_rate_shift [SLOT->rr + SLOT->ksr ]; SLOT->eg_sel_rr = eg_rate_select[SLOT->rr + SLOT->ksr ]; @@ -1263,8 +1265,8 @@ static void load_instrument(UINT32 chan, UINT32 slot, UINT8* inst ) set_ksl_wave_fb(chan, inst[3]); set_ar_dr(slot, inst[4]); set_ar_dr(slot+1, inst[5]); - set_sl_rr_ym2413(slot, inst[6]); - set_sl_rr_ym2413(slot+1, inst[7]); + set_sl_rr(slot, inst[6]); + set_sl_rr(slot+1, inst[7]); } static void update_instrument_zero(UINT8 r) @@ -1343,7 +1345,7 @@ static void update_instrument_zero(UINT8 r) { if ((ym2413.instvol_r[chan]&0xf0)==0) { - set_sl_rr_ym2413(chan*2, inst[6]); + set_sl_rr(chan*2, inst[6]); } } break; @@ -1353,7 +1355,7 @@ static void update_instrument_zero(UINT8 r) { if ((ym2413.instvol_r[chan]&0xf0)==0) { - set_sl_rr_ym2413(chan*2+1, inst[7]); + set_sl_rr(chan*2+1, inst[7]); } } break; diff --git a/source/sound/ym2612.c b/source/sound/ym2612.c index 70479da..663f066 100644 --- a/source/sound/ym2612.c +++ b/source/sound/ym2612.c @@ -1011,7 +1011,7 @@ INLINE void set_sr(FM_SLOT *SLOT,int v) } /* set release rate */ -INLINE void set_sl_rr_ym2612(FM_SLOT *SLOT,int v) +INLINE void set_sl_rr(FM_SLOT *SLOT,int v) { SLOT->sl = sl_table[ v>>4 ]; @@ -1586,7 +1586,7 @@ INLINE void OPNWriteReg(int r, int v) break; case 0x80: /* SL, RR */ - set_sl_rr_ym2612(SLOT,v); + set_sl_rr(SLOT,v); break; case 0x90: /* SSG-EG */