Commit graph

115 commits

Author SHA1 Message Date
Unknown W. Brackets
3899e18422 Always key on for 32 samples regardless of pitch.
Before it would be more or less depending on pitch.  It's always 32.
2014-02-17 21:09:41 -08:00
Unknown W. Brackets
e006ab5b2d Don't read the first 32 samples after keyon.
The way I'm approximating this is ugly...
2014-02-17 01:39:59 -08:00
Unknown W. Brackets
6b984c5593 Don't loop PCM samples when loopPos < 0. 2014-02-17 01:39:59 -08:00
Unknown W. Brackets
95fc9624b4 Fix PCM looping in SAS.
The parameter specifies where the loop restarts at.
2014-02-17 01:39:58 -08:00
Unknown W. Brackets
55507d7844 Fix the default adsr sustain mode.
Probably doesn't matter, games always set it.
2014-02-17 01:39:57 -08:00
Unknown W. Brackets
d097ac5394 Don't change height when keying off a voice.
Tests show that the height does not revert to the sustain level.
2014-02-17 01:39:56 -08:00
Unknown W. Brackets
d53ab02e5b Don't change height immediately on keyon.
This replicates the PSP's behavior, which is a 32-grain lead in, plus the
height remains what it was before until processing happens.
2014-02-17 01:39:55 -08:00
Unknown W. Brackets
684caa01ec Correct SAS bent linear curve.
Tests shows that at 0x30000000 it still goes up the full amount.
2014-02-17 01:39:54 -08:00
Henrik Rydgård
caf729e01e Remove call to SetState, superfluous now that the state variables are gone. 2014-02-11 17:05:46 +01:00
Henrik Rydgård
079f653cff Sas envelopes: Simplify away some redundant state. 2014-02-11 11:56:24 +01:00
Unknown W. Brackets
0265fc757d Flip and shift instead of signed divide.
Clearer than all those zeroes and maybe faster...
2014-02-11 01:29:33 -08:00
Unknown W. Brackets
b398a84517 Attack switches to decay at max height already.
It does not wait until it goes above.
2014-02-11 00:18:36 -08:00
Unknown W. Brackets
95a8af9e60 Decay does not switch to release at height max.
This can happen with an exponent rate of 0.  It stays there.
2014-02-11 00:17:13 -08:00
Unknown W. Brackets
f11d362be3 Fix integer overflow in exponent decrease. 2014-02-11 00:11:07 -08:00
Unknown W. Brackets
f981d39f94 Sustain defaults to 0, not 0x100.
Not sure how I came to that mistaken idea.
2014-02-10 23:48:10 -08:00
Unknown W. Brackets
6392307cbd Calculate the curve on the fly per the PSP.
Values based on lots of testing from the PSP, and match exactly.
2014-02-10 08:43:01 -08:00
Unknown W. Brackets
df7d25f4bf Correct a case where release rate was set negative.
Seems to be capped at INT_MAX like the others, oops.
2014-02-09 11:30:15 -08:00
Unknown W. Brackets
a14850c16b Drop height to 0 when VAG ends.
Otherwise we will set it to !playing and never step the height.
Should fix Yu-Gi-Oh again.  Probably release before was miscalculated as
0 which is why it worked before.
2014-02-09 10:53:47 -08:00
Unknown W. Brackets
074ef84559 Correct the rates set by sceSasSetSimpleADSR().
They were wrong for a few combinations before.  Could have effected how
accurate sound effects were (they may have been too quite, or dropped off
wrong, etc.)
2014-02-07 22:29:54 -08:00
raven02
3f20b5ad77 sceSas : should be always delay thread 2014-02-04 20:03:54 +08:00
Unknown W. Brackets
a00d5a2df8 Set a voice as keyed off when its envelope ends. 2014-02-04 01:35:53 -08:00
raven02
8e8329abec Fix audio gitches 2014-01-27 19:32:35 +08:00
Henrik Rydgård
0414a3faa4 Not having voices playing is not an error. Disabling logging of it. 2014-01-26 16:32:29 +01:00
raven02
7701784608 Not reschelding if voicesPlayingCount == 0 2014-01-26 19:52:31 +08:00
Henrik Rydgård
b333e5b77f Comment the fallthroughs in SasAudio.cpp 2014-01-23 20:58:42 +01:00
Henrik Rydgård
6c5165e505 Revert "Merge pull request #5190 from raven02/patch-32"
This reverts commit aef180259a, reversing
changes made to d69f02dea0.
2014-01-23 20:57:39 +01:00
raven02
9965bbb43e Shouldn't voice.type == VOICETYPE_VAG/PCM 2014-01-24 00:28:53 +08:00
Unknown W. Brackets
4102e649d5 Key off the envelope when the VAG/etc. ends.
Fixes Yu-Gi-Oh Tag Force GX 3 hanging in some places.
2014-01-13 21:42:42 -08:00
Unknown W. Brackets
79864a5ee0 Fix some initialization order warnings. 2014-01-10 22:21:24 -08:00
Henrik Rydgard
ddfdeb2222 VAGADPCM: no need to check end_ for every sample, it's only modified in DecodeBlock (and Start). 2014-01-04 11:01:44 +01:00
Henrik Rydgard
0de71f27cb Optimize the VAGADPCM decoder. 2014-01-04 01:59:20 +01:00
Henrik Rydgård
00c32ddadb Mostly get rid of including "Globals.h" 2013-12-30 10:17:11 +01:00
Henrik Rydgard
2c9a1123f0 Fix audio regression: Don't "WalkCurve" on state OFF 2013-11-17 23:13:30 +01:00
Henrik Rydgard
b30495c8e8 Reapply the "duration" SasAudio optimization. 2013-11-17 16:49:43 +01:00
Henrik Rydgard
5f51432de7 Revert "More minor SasAudio optimizations"
Will reapply later in pieces.

This reverts commit cd251af345.
2013-11-17 16:46:26 +01:00
Henrik Rydgård
4a89e2e74f Add "Dump frame GPU commands" to the "in-game" dev menu too. 2013-11-15 16:49:13 +01:00
Henrik Rydgård
cd251af345 More minor SasAudio optimizations 2013-11-15 12:28:16 +01:00
Henrik Rydgård
21006dc6a7 SasAudio: Compute envelope duration on state changes only. 2013-11-15 12:05:10 +01:00
Sacha
72fd653a31 sceAudio: ARM optimisation. 2013-10-29 00:16:37 +10:00
Unknown W. Brackets
ad8c4af936 Respect the bgm vol setting for at3, mp3, video. 2013-10-26 19:33:25 -07:00
Henrik Rydgard
f0e47838c6 Just break out some functions in SasAudio 2013-10-24 01:19:08 +02:00
Henrik Rydgard
a790c0a723 SasAudio: Add some comments about reverb, and add the reverb type list 2013-10-23 22:59:42 +02:00
Henrik Rydgård
ac2334386a Move BufferQueue out of the at3 plugin header 2013-10-17 12:31:22 +02:00
adrian17
7e3f35dfe3 Removed redundant includes 2013-09-30 19:05:04 +02:00
The Dax
d102baacd0 Prep PPSSPP for Visual Studio 2013. 2013-09-17 10:27:06 -04:00
Unknown W. Brackets
50e9e45d65 Check version in each DoState() func.
They bail on PointerWrap error or bad version.
2013-09-14 20:23:03 -07:00
Henrik Rydgard
78d3ee3d6a Misc cleanup, mostly logging code 2013-09-07 13:01:19 +02:00
ufdada
4576f03bd9 Small improvement for fade-in and fade-out sounds in Loco Roco
The fade-in and fade-out sounds in Loco Roco are way too long, this  small change improves it alot. now the sound that is played after reaching the goal in a level sounds about right.
2013-08-31 18:12:16 +02:00
Unknown W. Brackets
1ed8edb0d3 Avoid some dangerous hex constant widths. 2013-08-22 23:23:48 -07:00
The Dax
8b6790187d Fix some translation issues and change a variable name(it was supposed to be iSFXVolume, but for some reason it never got changed over). 2013-08-09 08:04:13 -04:00