notaz.gp2x.de
/
pcsx_rearmed.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
c4c66b2
)
spu: fix first sample, don't play ahead
author
notaz
<notasas@gmail.com>
Sun, 21 Dec 2014 00:20:41 +0000
(
02:20
+0200)
committer
notaz
<notasas@gmail.com>
Sun, 21 Dec 2014 00:31:24 +0000
(
02:31
+0200)
plugins/dfsound/spu.c
patch
|
blob
|
blame
|
history
diff --git
a/plugins/dfsound/spu.c
b/plugins/dfsound/spu.c
index
2c13ca1
..
835555d
100644
(file)
--- a/
plugins/dfsound/spu.c
+++ b/
plugins/dfsound/spu.c
@@
-5,7
+5,7
@@
copyright : (C) 2002 by Pete Bernert
email : BlackDove@addcom.de
copyright : (C) 2002 by Pete Bernert
email : BlackDove@addcom.de
- Portions (C) Gražvydas "notaz" Ignotas, 2010-2012
+ Portions (C) Gražvydas "notaz" Ignotas, 2010-2012
,2014
***************************************************************************/
/***************************************************************************
***************************************************************************/
/***************************************************************************
@@
-253,14
+253,13
@@
INLINE void StartSound(int ch)
s_chan[ch].SB[26]=0; // init mixing vars
s_chan[ch].SB[27]=0;
s_chan[ch].SB[26]=0; // init mixing vars
s_chan[ch].SB[27]=0;
- s_chan[ch].iSBPos=2
8
;
+ s_chan[ch].iSBPos=2
7
;
+ s_chan[ch].SB[28]=0;
s_chan[ch].SB[29]=0; // init our interpolation helpers
s_chan[ch].SB[30]=0;
s_chan[ch].SB[29]=0; // init our interpolation helpers
s_chan[ch].SB[30]=0;
-
- if(spu_config.iUseInterpolation>=2) // gauss interpolation?
- {s_chan[ch].spos=0x30000L;s_chan[ch].SB[28]=0;} // -> start with more decoding
- else {s_chan[ch].spos=0x10000L;s_chan[ch].SB[31]=0;} // -> no/simple interpolation starts with one 44100 decoding
+ s_chan[ch].SB[31]=0;
+ s_chan[ch].spos=0;
spu.dwNewChannel&=~(1<<ch); // clear new channel bit
}
spu.dwNewChannel&=~(1<<ch); // clear new channel bit
}