Commit Graph
91 Commits
Author SHA1 Message Date
Unknown W. Brackets fe1f4d53c6 Return an error on bad SAS sample rate.
Also reorder the types to fit the PSP's flag values.
2013-09-01 16:59:37 -07:00
Henrik Rydgard a530d47fcd Clamp bad audio pitches for safety. 2013-08-27 22:47:45 +02:00
Unknown W. Brackets a217cefa11 Tone down some less needed reporting. 2013-08-21 08:40:29 -07:00
Henrik Rydgard 806fadb1c0 logging tweak 2013-06-17 22:05:47 +02: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
Unknown W. Brackets 8e7c5be2e0 Don't return errors in sceSasSetPause().
-1 is perfectly valid, we just need to not infinite loop in that case by
using a logical shift not an arithmetic one.
2013-06-12 07:56:53 -07:00
Unknown W. Brackets 28729fc116 sceSasInit() ignores maxVoices and always does 32.
Weird, I can't find anything that parameter does except generate errors.
Most games call with 32 anyway...

Affects only sceSasGetEndFlag() and sceSasGetPauseFlag() really.
2013-06-11 00:43:52 -07:00
Unknown W. Brackets b7d494f34e Delay in sceSasCore per tests.
Not sure if this fixes anything, but scheduling issues can be tricky.
2013-06-09 20:56:09 -07:00
Unknown W. Brackets ea5996bf02 Don't restart release on double keyoff.
Fixes Kingdom Hearts bug, #2066.
2013-06-09 20:38:54 -07:00
Unknown W. Brackets 1d35cc46a4 Validate parameters in sceSasInit(). 2013-06-09 20:32:01 -07:00
oioitff c98adee757 Implement __sceSasConcatenateATRAC3.
.
2013-06-09 19:07:02 +08:00
oioitff 3c13b574e3 Partly implement __sceSasSetVoiceATRAC3.
Fix Sol Trigger hang up issue.
2013-06-09 01:34:38 +08:00
Unknown W. Brackets fa69e5e646 Didn't need any special logic here after all. 2013-05-27 17:05:13 -07:00
Unknown W. Brackets 7b154f9a2e Fix VAG looping. 2013-05-27 16:48:59 -07:00
Unknown W. Brackets 91bdc0617e Return an invalid size error even for VAG = 0. 2013-05-27 12:19:19 -07:00
Unknown W. Brackets aeb2b23735 Validate volume inside sceSasSetVolume().
I wonder what a negative volume means?
2013-05-27 11:57:27 -07:00
oioitff 99f8041375 Implement pcm voice correctly. 2013-05-24 00:42:15 +08:00
Unknown W. Brackets cdacdee030 Match syscall names to nids ot be safe.
Don't want any more mistakes like the sceVaudio one.
2013-05-19 22:12:39 -07:00
Unknown W. Brackets ded3fb5e12 Add reporting to a bunch of unimpl functions.
Also some comment/logging fixes along the way.
2013-05-19 22:12:37 -07:00
oioitff 8d10724b64 Implement volume control for _sceSasCoreWithMix.
Tested with Fate Unlimited Code.
2013-05-11 04:30:02 +08:00
oioitff a944c96137 Remove the useless codes instead. 2013-04-23 22:31:23 +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
Unknown W. Brackets e4223dbcb0 Simplify adding report messages, add a bunch more. 2013-03-26 00:54:00 -07:00
raven02 1b5dce5c93 Remove volume shift 2013-03-12 21:19:48 +08:00
raven02 b07fe9da46 Should be good enough to remove now as we already identifed games use sceSasSetVoicePCM() 2013-03-12 12:17:19 +08:00
Unknown W. Brackets cb4c7f0eb6 Add some basic reporting hooks. 2013-03-04 00:01:40 -08:00
Unknown W. Brackets 51d5b84108 Fix some misc HLE warnings. 2013-02-18 09:04:43 -08:00
raven02 f41b3f7cf1 sceSAS style & simplification 2013-02-17 09:45:20 +08:00
Henrik Rydgard 686c083b6f sceSas: initialize some stuff 2013-02-16 14:07:04 +01:00
Lewis Robbins 73ddf8d01f Line spacing 2013-02-10 14:16:29 +00:00
Lewis Robbins 6efad644d3 extra int print 2013-02-10 14:12:48 +00:00
Unknown W. Brackets 112c1e9e23 Automatically delete pointers when savestating. 2013-02-04 08:28:22 -08:00
raven02 3e319d5975 Add stubs for _sceAtracGetContextAddress 2013-02-03 08:08:44 +08: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 d14b6ed423 Oops, missing voiceNum 2013-01-27 22:27:14 +08:00
raven02 dfcc836bf8 Shift volume base on sceSasSetVolume 2013-01-27 22:15:23 +08:00
Henrik Rydgard 3126d17624 Change logging for PCM audio to INFO, as mentioned in Issue #505 2013-01-26 14:30:06 +01:00
Henrik Rydgard 0930b5b587 Typo + warning fix 2013-01-25 19:08:28 +01:00
Henrik Rydgard 4deaec8924 Make ADPCM audio a little less crackly in a hacky way.. 2013-01-25 18:36:05 +01:00
raven02 ae9fcb5a6f Fix high pitch noise and looping issues in few games 2013-01-24 20:13:12 +08:00
raven02 1749a9b5ae Put core as first paraemeter for DEBUG_LOG 2013-01-23 16:19:44 +08:00
raven02 7346c4a042 Add error handling ERROR_SAS_INVALID_SIZE and ERROR_SAS_INVALID_PAUSED 2013-01-23 14:50:36 +08:00
Henrik Rydgard cfc4717a51 Ignore voicenum = -1 in sceSasSetKeyOff for now. Update native. 2013-01-04 00:24:51 +01:00
Unknown W. Brackets 19aaca2705 Start save stating audio, plus minor fixes. 2012-12-28 13:55:29 -08:00
Henrik Rydgård ce214b3943 Assorted warning fixes 2012-12-23 09:44:43 +01:00
Henrik Rydgard c279b88e28 Add check for invalid VAG audio addresses 2012-12-20 22:44:28 +01:00
Henrik Rydgard 913f392d66 Move the SasInstance to the heap. Some cleanup. 2012-12-17 21:43:31 +01:00
Henrik Rydgard 9acfd50139 Fix one cause of audio choppiness - we were dropping samples when audio functions blocked. Also some cleanup. 2012-12-17 20:15:23 +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 15b7c1c96c sceSas cleanup 2012-12-16 20:40:49 +01:00