From 8d80ff0652a99a354e5c854149a2bad5936d423c Mon Sep 17 00:00:00 2001 From: ramapcsx2 Date: Tue, 5 Feb 2013 14:21:24 +0000 Subject: [PATCH] SPU2-X: Adding a log for bad pitch settings, in preparation of changing current behavior. (Need to check some games that do it first) git-svn-id: http://pcsx2.googlecode.com/svn/trunk@5545 96395faa-99c1-11dd-bbfe-3dabce05a288 --- plugins/spu2-x/src/spu2sys.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/spu2-x/src/spu2sys.cpp b/plugins/spu2-x/src/spu2sys.cpp index cc6e16c034..7def4589cd 100644 --- a/plugins/spu2-x/src/spu2sys.cpp +++ b/plugins/spu2-x/src/spu2sys.cpp @@ -814,6 +814,7 @@ static void __fastcall RegWrite_VoiceParams( u16 value ) break; case 2: + if (value > 0x3fff) ConLog( "* SPU2: Pitch setting too big: 0x%x\n", value); thisvoice.Pitch = value & 0x3fff; break; @@ -829,7 +830,7 @@ static void __fastcall RegWrite_VoiceParams( u16 value ) // [Air] : Mysterious ADSR set code. Too bad none of my games ever use it. // (as usual... ) thisvoice.ADSR.Value = (value << 16) | value; - ConLog( "* SPU2: Mysterious ADSR Volume Set to 0x%x", value ); + ConLog( "* SPU2: Mysterious ADSR Volume Set to 0x%x\n", value ); break; case 6: thisvoice.Volume.Left.RegSet( value ); break;