Commit graph

75 commits

Author SHA1 Message Date
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
Henrik Rydgård
05dfd27db8 Merge pull request #2638 from bagnz0r/master
Audio optimization, usability fixes, sound peak blowout fix, Polish translation, bugfixes
2013-07-18 02:54:03 -07:00
Unknown W. Brackets
9608067ca2 Cleanup initialization order. 2013-07-07 20:31:04 -07:00
bagnz0r
669216fcab This should be better, previous values still caused a peak blowout. Also
limited sound SE and BGM value to 8, because any higher and you have
garbage.
2013-07-06 23:40:05 +02:00
bagnz0r
26654555b4 Updated block values so that we will have lower latency audio...
Additionally I have fixed the issue with too loud sound effects and broken
buttons in audio settings screen. Before this fix, you wouldn't be able to
set the volume above 5 despite the fact that 8 is the default value.
5
2013-07-06 23:23:17 +02:00
Henrik Rydgard
acf94a35f8 Minor audio optimization 2013-07-06 22:21:52 +02:00
raven02
6c3895491e Add preliminary volume control for BGM and SE 2013-07-06 16:54:13 +08:00
Unknown W. Brackets
4ca084b9ad Add a bit more space for the smoothness hackery.
Prevents a buffer overflow error I was getting randomly.
2013-06-29 16:06:24 -07:00
Henrik Rydgard
67c185f8ea Update native to not wait in the opensl callback. Some minor audio optimizations. Also it seems ffmpeg has changed so update it. 2013-06-22 17:37:09 +02:00
Unknown W. Brackets
16b0a99e5f Adjust some default values for SAS audio. 2013-06-12 08:02:56 -07:00
Unknown W. Brackets
8b4b4a6b8c Use the 1 bit in sceSasRevVON() and cleanup.
Not used yet anyway.
2013-06-12 07:59:54 -07:00
Henrik Rydgard
a581e0d180 Avoid division by zero in audio envelope processing. Fixes sound FX on android in some games. 2013-06-11 11:05:34 +02:00
Unknown W. Brackets
b5ac7eead1 Cleanup some SAS constructors. 2013-06-11 00:37:29 -07:00
Henrik Rydgard
43af3d81d1 Add STATE_SUSTAIN code similar to JPCSP, should fix sound fx again in some games.
Please comment in the github commit if this breaks anything. Fixes #2189
2013-06-10 22:18:50 +02:00
Henrik Rydgård
3185594d3c Merge pull request #2186 from unknownbrackets/sas-minor2
Add some error handling in sceSas, delay sceSasCore()
2013-06-09 23:48:25 -07:00
Unknown W. Brackets
3aaabfb987 Revert #1974, the other fixes are better.
This is no longer needed for games I have, and it breaks Final Fantasy
Tactics' sound effects.

Looking at JPCSP for insight, I saw that it re-enables loops if you set a
voice even with a different address (I think?) but that seems strange.
2013-06-09 22:47:01 -07:00
Unknown W. Brackets
b7152c2f27 Correct envelope scaling in sas mixing.
Sound effects seem a bit loud, but this matches what JPCSP does and I've
added comments based on my understanding of it.  It makes sense.

This makes all the sounds that never get muted when the envelope hits 0 go
away.  Hurray.

Thanks to help from @i1x.
2013-06-09 19:28:21 -07:00
oioitff
c98adee757 Implement __sceSasConcatenateATRAC3.
.
2013-06-09 19:07:02 +08:00
oioitff
883d60fad3 Use a pointer for sampleQueue in SasAtrac3. 2013-06-09 01:58:06 +08:00
oioitff
3c13b574e3 Partly implement __sceSasSetVoiceATRAC3.
Fix Sol Trigger hang up issue.
2013-06-09 01:34:38 +08:00
Unknown W. Brackets
42ced72b13 Fix undead VAG loops, KeyOff should stop them. 2013-05-28 23:05:34 -07:00
Henrik Rydgård
0abf322c1d Merge pull request #1961 from unknownbrackets/savestates
Fix some missing things from save states
2013-05-28 00:41:01 -07:00
Henrik Rydgård
d76d05b338 Merge pull request #1957 from unknownbrackets/perf
Small performance improvement in VAG decoding
2013-05-28 00:39:43 -07:00
Unknown W. Brackets
4e76d45bca Add pcmIndex to sas voice DoState().
Otherwise we can get crashes.
2013-05-27 23:49:46 -07:00
Unknown W. Brackets
1107571af5 Don't cap predict_nr, just make the table bigger. 2013-05-27 18:16:41 -07:00
Unknown W. Brackets
e8be3d8da2 Decode VAG samples in one shot, not two. 2013-05-27 18:16:40 -07:00
Unknown W. Brackets
7b154f9a2e Fix VAG looping. 2013-05-27 16:48:59 -07:00
Henrik Rydgård
2bf1beb8d8 Merge pull request #1898 from oioitff/audio-fix
Implement pcm voice correctly
2013-05-23 13:14:20 -07:00
oioitff
338f7ae700 Use another method to scale by envelopValue. 2013-05-24 04:08:37 +08:00
oioitff
99f8041375 Implement pcm voice correctly. 2013-05-24 00:42:15 +08:00
Unknown W. Brackets
3931f07852 Fix a couple bad bounds checks in VAG/Mpeg. 2013-05-18 10:19:12 -07:00
oioitff
8d10724b64 Implement volume control for _sceSasCoreWithMix.
Tested with Fate Unlimited Code.
2013-05-11 04:30:02 +08:00
oioitff
62f79989bd Implement _sceSasCoreWithMix correctly.
The inoutAddr should be both input and output buffer address.
2013-04-23 22:00:14 +08:00
oioitff
3ff492646b Add simple mono support for sasaudio 2013-04-13 19:01:22 +08:00
oioitff
828b5a0be8 Implement pcm voices for sasaudio.
Tested with NPJH 50569: Ore no Imouto2.
2013-04-13 18:58:13 +08:00
raven02
e4f3571e05 Add default ADSR value for rate and curve type 2013-04-06 15:39:28 +08:00
Unknown W. Brackets
c20251ab30 Organize mem access a bit in SasInstance::Mix().
It's a bit faster but this isn't really the hottest part...
2013-03-16 11:59:44 -07:00
raven02
19599a27d2 Shift << 3 in sasAudio 2013-03-12 21:21:10 +08:00
raven02
4b86fd7567 Fake VOICETYPE_PCM code 2013-03-12 09:14:31 +08:00
Unknown W. Brackets
2cb2601456 Fix crash executing the sascore test. 2013-02-23 18:35:22 -08:00
Unknown W. Brackets
363d1dbe19 Fix some misc. warnings. 2013-02-18 08:44:59 -08:00