Commit graph

81 commits

Author SHA1 Message Date
Unknown W. Brackets
16b0a99e5f Adjust some default values for SAS audio. 2013-06-12 08:02:56 -07:00
Unknown W. Brackets
b5ac7eead1 Cleanup some SAS constructors. 2013-06-11 00:37:29 -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
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
Unknown W. Brackets
e8be3d8da2 Decode VAG samples in one shot, not two. 2013-05-27 18:16:40 -07:00
oioitff
99f8041375 Implement pcm voice correctly. 2013-05-24 00:42:15 +08: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
raven02
87b5b195e3 Add default volume value for left/right channel 2013-04-06 15:41:49 +08:00
Henrik Rydgard
686c083b6f sceSas: initialize some stuff 2013-02-16 14:07:04 +01:00
Unknown W. Brackets
a4032c5170 Simplify savestate code so it's all automagical.
If you can't beat 'em, join 'em?
2013-02-04 08:27:01 -08:00
Unknown W. Brackets
2a6457b6ab Cut down on h files including PointerWrap.
This makes changes to it a bit faster to build.
2013-02-04 08:26:59 -08:00
Henrik Rydgard
ddd0ce4c18 Implement a PSP model checking function, comment fix 2013-02-02 12:38:24 +01:00
raven02
693619ed6e Init loop to true which ignore VAG loop and set sampleRate for each voices 2013-01-31 15:00:58 +08:00
raven02
4a1218387d Add effectLeft and effectRight 2013-01-27 22:34:14 +08:00
Henrik Rydgard
4deaec8924 Make ADPCM audio a little less crackly in a hacky way.. 2013-01-25 18:36:05 +01:00
Henrik Rydgard
31b73a0b99 No need for double precision in ADPCM decoder 2013-01-25 18:29:15 +01:00
Unknown W. Brackets
e665618891 Fix kernel object loading (ouch) from save states.
Also a fix to SAS voices not saving right.
2012-12-28 13:55:30 -08:00
Unknown W. Brackets
7a2adfd8a5 Don't store pointers in VagDecoder directly.
I'm assuming it's fine to not fix read_ when end_ happens.
Shouldn't be any performance penality, really.
2012-12-28 13:55:29 -08:00
Unknown W. Brackets
19aaca2705 Start save stating audio, plus minor fixes. 2012-12-28 13:55:29 -08:00
Henrik Rydgård
ddd3e4384f audio: need to clear the rest of the buffer at end of sample. 2012-12-26 19:12:23 +01:00
Henrik Rydgård
27e8e4c6fb Stop ADPCM decoder from running off into space. improves motogp audio. 2012-12-26 09:07:52 +01:00
Henrik Rydgård
fb238c685e SasAudio: voice.samplePos -> voice.sampleFrac. Gets rid of annoying overflow errors. 2012-12-26 08:53:19 +01:00
Henrik Rydgård
38a7059bdd Initialize some stuff in SasAudio, fixes some audio issues on my mac 2012-12-25 10:08:57 +01:00
Henrik Rydgard
913f392d66 Move the SasInstance to the heap. Some cleanup. 2012-12-17 21:43:31 +01:00
Henrik Rydgard
1400237d0e Lots of various work on sceSas. ADSR envelopes, correct looping, etc etc... Still far from perfect but better. 2012-12-17 18:07:25 +01:00
Henrik Rydgard
369afa5b93 sceSas: Resample audio according to pitch 2012-12-16 21:20:16 +01:00
Henrik Rydgard
15b7c1c96c sceSas cleanup 2012-12-16 20:40:49 +01:00