Commit Graph

204 Commits

Author SHA1 Message Date
raven02
2b89ccfa50 Use Dark Grey to identify CG is running instead of black 2013-04-28 10:43:31 +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
Henrik Rydgård
6a8096c0de Merge pull request #1187 from raven02/patch-7
Add default ADSR rate/ curvetype and default volume
2013-04-06 00:46:57 -07:00
raven02
87b5b195e3 Add default volume value for left/right channel 2013-04-06 15:41:49 +08:00
raven02
e4f3571e05 Add default ADSR value for rate and curve type 2013-04-06 15:39:28 +08:00
Unknown W. Brackets
4974124587 Fix some small constant-comparison type warnings. 2013-04-05 20:58:35 -07:00
raven02
c7d2626bca Set fake image to black 2013-03-18 19:28:10 +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
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
a4c78888c0 Set predict_nr = 0 when predict_nr greater than VAG array length 2013-01-31 22:16:15 +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
Unknown W. Brackets
74f3b81846 Check for a null pointer when writing video. 2013-01-28 02:16:06 -08:00
raven02
4a1218387d Add effectLeft and effectRight 2013-01-27 22:34:14 +08:00
raven02
523f026c3d Restore shift volume to 15 2013-01-27 22:16:15 +08: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
Henrik Rydgard
31b73a0b99 No need for double precision in ADPCM decoder 2013-01-25 18:29:15 +01:00
Unknown W. Brackets
cb0538c4db Can't just do that, might get the vtbl. Arg. 2012-12-29 03:19:13 -08:00
Unknown W. Brackets
6f9f9e1c98 Merge branch 'master' into mediaengine.
Note: doesn't compile, just fixes conflicts.

Conflicts:
	Core/HLE/sceKernel.cpp
	Core/HLE/sceKernelThread.cpp
	Core/HLE/sceKernelThread.h
2012-12-28 22:32:56 -08:00
Unknown W. Brackets
bcecd881b1 Savestate cleanup + be more careful with vectors.
For some reason I debugged it going into std::string so I just made
them all more explicit which fixed everything.
2012-12-28 13:55:31 -08: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
Unknown W. Brackets
fbe4fd396e Add a mechanism to restore event callback ptrs.
Ugh, more duplicates.  Maybe can find a good way to refactor.
2012-12-28 13:55:24 -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
Unknown W. Brackets
3464fd6b00 Fix crash with unitialized var in mpeg code. 2012-12-24 11:56:51 -08:00
raven02
c7a9c40827 Fix audio crash in FF type-0 2012-12-23 23:27:54 +08:00
Unknown W. Brackets
217bdc275e Fix some type-conversion warnings. 2012-12-21 16:07:38 -08:00
Henrik Rydgard
2b8419e0ff Attempt more accurate frame timing (windows). Increase audio volume. 2012-12-18 10:25:57 +01:00
Henrik Rydgard
ab35c7f612 Merge branch 'master' into mediaengine 2012-12-18 00:05:09 +01:00
Henrik Rydgard
c3819ec721 Fix a possible crash in audio code 2012-12-17 21:59:43 +01:00
Henrik Rydgard
913f392d66 Move the SasInstance to the heap. Some cleanup. 2012-12-17 21:43:31 +01:00
Henrik Rydgard
b5808eaf47 optimizin', bugfixin' 2012-12-17 20:43:43 +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
bc214dcf37 Merge branch 'master' into mediaengine
Conflicts:
	Common/LogManager.cpp
	Core/CMakeLists.txt
	Core/Core.vcxproj
	Core/Core.vcxproj.filters
	Core/CoreParameter.h
	Core/HLE/sceAudio.cpp
	Core/HLE/sceKernel.cpp
	Core/HLE/sceKernelThread.cpp
	Core/HLE/sceMpeg.cpp
	android/jni/Android.mk
2012-12-17 18:48:32 +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
Henrik Rydgard
8053c244b8 Implement large chunks of sceMpeg and scePsmf with JPSCP as a guide.
Not yet hooked up to FFMPEG and doesn't quite work yet.
2012-11-13 18:07:20 +01:00
Henrik Rydgard
1127c72124 some initial mediaengine work 2012-11-12 20:53:16 +01:00
Henrik Rydgard
1b90a8b327 Another memstick ioctl, minor fixes 2012-11-09 10:01:54 +01:00
Henrik Rydgard
d086c18db7 MemoryStick HW 2012-11-06 15:45:13 +01:00