aboutsummaryrefslogtreecommitdiff
path: root/plugins/dfsound
diff options
context:
space:
mode:
authornotaz2011-07-29 00:25:41 +0300
committernotaz2011-07-30 02:43:33 +0300
commit90f1d26c2e771993c1a563f4c0ea81432bd9fc5e (patch)
tree8c7ee9903f4b9ca6079f06d1b8a2bbf952c1c762 /plugins/dfsound
parent78c60846942cad7d41d6d23a7c3d2b905ee4b822 (diff)
downloadpcsx_rearmed-90f1d26c2e771993c1a563f4c0ea81432bd9fc5e.tar.gz
pcsx_rearmed-90f1d26c2e771993c1a563f4c0ea81432bd9fc5e.tar.bz2
pcsx_rearmed-90f1d26c2e771993c1a563f4c0ea81432bd9fc5e.zip
frontend: add chan display option, for fun mostly
Diffstat (limited to 'plugins/dfsound')
-rw-r--r--plugins/dfsound/spu.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/plugins/dfsound/spu.c b/plugins/dfsound/spu.c
index 780b091..228267d 100644
--- a/plugins/dfsound/spu.c
+++ b/plugins/dfsound/spu.c
@@ -1075,4 +1075,24 @@ char * SPUgetLibInfos(void)
}
*/
+// debug
+void spu_get_debug_info(int *chans_out, int *fmod_chans_out, int *noise_chans_out)
+{
+ int ch = 0, fmod_chans = 0, noise_chans = 0;
+
+ for(;ch<MAXCHAN;ch++)
+ {
+ if (!(dwChannelOn & (1<<ch)))
+ continue;
+ if (s_chan[ch].bFMod == 2)
+ fmod_chans |= 1 << ch;
+ if (s_chan[ch].bNoise)
+ noise_chans |= 1 << ch;
+ }
+
+ *chans_out = dwChannelOn;
+ *fmod_chans_out = fmod_chans;
+ *noise_chans_out = noise_chans;
+}
+
// vim:shiftwidth=1:expandtab