Henrik Rydgård
6b84743082
Merge pull request #2217 from oioitff/mpeg-fix
...
Add support for multiple video/audio stream.
2013-06-11 07:42:19 -07:00
oioitff
77a17cacc5
Add support for multiple video/audio stream.
2013-06-11 19:04:14 +08: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
Unknown W. Brackets
2ce4cd245f
Allow a video end a couple packets from end.
...
Fixes #2206 , Patapon 3. Possibly we don't even need this check at all,
but I'm not sure.
2013-06-10 23:18:36 -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
32fb534375
Improve mpeg timestamp.
...
Read 6 bytes timestamp instead.
2013-06-10 04:21:36 +08:00
Sacha
29d1e40c79
Buildfix for Blackberry, Linux, Symbian, non-ffmpeg platforms, Meego, ...
2013-06-09 22:53:22 +10:00
Henrik Rydgård
62f8727bca
Merge pull request #2165 from oioitff/atrac-fix
...
Implement __sceSasConcatenateATRAC3 and tiny bug fix for sceAtrac.
2013-06-09 04:54:45 -07:00
Henrik Rydgard
04d24012e1
Prevent crashing the emu in stepVideo when things have gone very wrong.
2013-06-09 13:45:48 +02:00
oioitff
c98adee757
Implement __sceSasConcatenateATRAC3.
...
.
2013-06-09 19:07:02 +08:00
Henrik Rydgård
00d589e1af
Merge pull request #2150 from oioitff/atrac-fix
...
Partly implement _sceAtracGetContextAddress and __sceSasSetVoiceATRAC3.
2013-06-08 11:00:11 -07: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
Henrik Rydgard
f3224a60e1
Return "libat3plusdecoder.so" as at3plus decoder filename on non-Win/android platforms
2013-06-08 17:44:18 +02:00
Unknown W. Brackets
14034fd9c1
PSP can decode directly to vram, so detect that.
...
Not sure if any games do this but I did it in a test.
2013-06-08 04:52:37 -07:00
Unknown W. Brackets
4de27773d2
Detect audio end separately from video end.
...
Fixes Crisis Core, broken by Wipeout Pure fix.
2013-06-08 03:00:50 -07:00
Unknown W. Brackets
be7fd47fc2
Calculate packets left based on decode, not read.
...
This seems to be more correct. Fixes #2039 .
2013-06-08 03:00:49 -07:00
Unknown W. Brackets
073282217c
Cut down on void *'s for easier debugging.
...
Nice to be able to see inside structs with the debugger.
2013-06-08 03:00:49 -07:00
Unknown W. Brackets
36eb90293e
Don't use m_pFrame->pkt_duration directly.
...
Docs say you're supposed to call this func instead.
2013-06-08 03:00:48 -07:00
Unknown W. Brackets
6f9a879aad
Set video end only when we run out of frames.
2013-06-08 03:00:48 -07:00
Unknown W. Brackets
b04b601958
Make sure to decode reordered mpeg frames.
2013-06-08 03:00:48 -07:00