Commit Graph

212 Commits

Author SHA1 Message Date
Unknown W. Brackets
3ba78c865e Fix low-level atrac3/atrac3+ decoding.
Fixes #6400.
2014-06-24 01:18:00 -07:00
Henrik Rydgard
2236b3a52b sceAtrac3 minor cleanup: Get rid of mutable globals, add another sanity check with reporting 2014-06-22 10:42:27 +02:00
sum2012
f3826bc608 Further add a codecType check 2014-06-22 06:49:02 +08:00
sum2012
6fe74d938e Change to report 2014-06-21 08:00:16 +08:00
sum2012
846eda836f Add a codecType check in sceAtracSetHalfwayBufferAndGetID
Fix crash in #6363
2014-06-21 05:44:29 +08:00
Unknown W. Brackets
77b5cb7629 Reset decodePos in lowlevel decode.
FFmpeg was smart enough to do this for us, but not when we loaded a
savestate.  This is because without a savestate, we returned an initial
small header packet of this size, which gave FFmpeg the idea that seeking
there might help.

But, since we're forcing the decode at a certain position the better thing
is to seek ourselves.
2014-05-29 00:38:20 -07:00
Unknown W. Brackets
f29233386c Initialize some variables. 2014-05-29 00:16:16 -07:00
raven02
4806d01db1 Dostate for resetBuffer 2014-04-22 15:18:24 +08:00
raven02
f845113eb2 sceAtrac: set full filled buffer when game ask to do so via sceAtracGetRemainFrame() 2014-04-22 09:13:49 +08:00
elson
c549a7576e Update sceAtrac.cpp
writebleBytes updated in sceAtracDecodeData
2014-04-18 23:02:24 +08:00
elson
47b7b8b90f fix some game don't add stream data when playing atrac3+ problem 2014-04-18 17:36:11 +08:00
raven02
619039aed6 No need to init packet as {0} 2014-04-07 19:29:57 +08:00
Unknown W. Brackets
aea26f666c Clean up some atrac/mp3 potential leaks. 2014-03-30 15:08:38 -07:00
Unknown W. Brackets
05ab192c9c Reduce includes in Core/HLE/.
Especially templates.
2014-03-15 11:22:19 -07:00
lioncash
b9886942a7 Fix some vertical alignments in misc Core source files. 2014-03-03 11:16:53 -05:00
Unknown W. Brackets
55c59164f7 Try to ignore unimplemented ATRAC features.
Even if it causes the audio to blip, it should continue.  May fix Class of
Heroes and zero no Kiseki (see #5286.)
2014-01-31 21:40:15 -08:00
Henrik Rydgård
169844cc8c MediaEngine/atrac: Initialize some variables, remove use of some deprecated functions 2014-01-27 14:08:05 +01:00
Unknown W. Brackets
79864a5ee0 Fix some initialization order warnings. 2014-01-10 22:21:24 -08:00
Unknown W. Brackets
183b4cb45c Add a static method for creating PSPPointers.
This is still kinda ugly, but the assignment thing was just too ugly, I
couldn't do it anymore.
2013-12-16 23:50:52 -08:00
raven02
29f7d4cb5f Regression fix #4837 2013-12-15 19:54:06 +08:00
raven02
bf93910215 sceAtracGetNextDecodePosition() : write 0 to outposAddr when before return ATRAC_ERROR_ALL_DATA_DECODED 2013-12-15 14:48:08 +08:00
Henrik Rydgard
70174ac405 Warn fix, cleanup, update buttons.svg 2013-12-12 12:08:36 +01:00
papel
38a5233dd4 Fix GetBufferInfoForResetting 2013-11-11 08:49:15 +02:00
Unknown W. Brackets
348ea5b5cf Fix volume scaling for mono inputs, etc.
Fixes #4423.
2013-11-03 01:14:22 -07:00
Unknown W. Brackets
8d3ba58936 Cap the buffer size in sceAtracSetDataAndGetID().
Not sure if this should be done in the others or not...
2013-10-30 07:55:47 -07:00
Unknown W. Brackets
696aa0f974 Initialize atrac context values per PSP tests. 2013-10-30 07:48:50 -07:00
Unknown W. Brackets
14cff41a9a Fix state value in atrac context with no buffer.
Unlikely games use this, but they could.
2013-10-30 07:48:50 -07:00
Unknown W. Brackets
31112d1fa1 Report and return errors for bad atrac data.
The PSP returns errors for invalid data, so we should too.
2013-10-30 07:48:49 -07:00
Unknown W. Brackets
8dcc384dba Adjust some atrac reporting/logging. 2013-10-30 07:48:49 -07:00
Unknown W. Brackets
3e0c37bb62 Return an error when no data set yet.
Specifically this happens if you sceAtracGetAtracID, but don't set any
data yet.  Games might check for it to load in data.
2013-10-30 07:48:48 -07:00
Unknown W. Brackets
b7bd107956 When using a bad atrac ID, return proper errors.
Tested each func with invalid ids.
2013-10-30 07:48:48 -07:00
Unknown W. Brackets
ad8c4af936 Respect the bgm vol setting for at3, mp3, video. 2013-10-26 19:33:25 -07:00
Henrik Rydgard
1595ac3386 Log spam reduction - only WARN about non-zero bad handles, and sceAtracSetLoopNum gets demoted to DEBUG. 2013-10-22 19:56:05 +02:00
Henrik Rydgard
de39a81dce sceAtrac: Force mono when needed. (see #4248) 2013-10-22 11:01:46 +02:00
Henrik Rydgard
3d5a85f1a7 Restore accidental change to sceAtracGetInternalInfo, minor indentation reduction, demote a log message 2013-10-22 10:53:48 +02:00
Henrik Rydgard
bf89c01215 When atrac3+ decoding fails, stop decoding silently-ish instead of decoding garbage, spamming the log 2013-10-21 23:10:30 +02:00
Henrik Rydgård
8556eaf59d sceAtrac: Report occurences of multiple packets in one. Update native
with minor UI fix.
2013-10-21 11:19:13 +02:00
sum2012
fc3d3c9a78 fix maxim-at3plus crash
Thanks @unknownbrackets
https://github.com/hrydgard/ppsspp/issues/4248
Digimon Adventure Voice probrem can be fixed later
2013-10-20 20:57:24 +08:00
Henrik Rydgard
f5a63d7d41 Better fix for the UINT_64 define issue on android 2013-10-20 13:52:31 +02:00
Unknown W. Brackets
e95f55a5fe Fix some enum type warnings. 2013-10-19 14:57:45 -07:00
Henrik Rydgård
be40289d6c Use ffmpeg for Atrac3+ decoding during video playback as well. 2013-10-19 23:09:26 +02:00
Henrik Rydgard
3cefa1ad79 Things seem more stable after initializing the AVPacket.
More testing needed though.
2013-10-19 23:09:25 +02:00
Henrik Rydgard
f311901e5e Use ffmpeg for decoding Atrac3+ in sceAtrac. Thanks Maxim. 2013-10-19 23:09:25 +02:00
Henrik Rydgård
ac2334386a Move BufferQueue out of the at3 plugin header 2013-10-17 12:31:22 +02:00
Unknown W. Brackets
3a1b6fb269 Fix some sign comparison warnings. 2013-10-05 11:13:41 -07:00
raven02
e5305f655d Chane to ATRAC_ERROR_NO_LOOP_INFORMATION 2013-09-22 11:41:58 +08:00
The Dax
d102baacd0 Prep PPSSPP for Visual Studio 2013. 2013-09-17 10:27:06 -04:00
Unknown W. Brackets
0c6fbb461d Tweak ffmpeg logging in mp3/atrac as well. 2013-09-16 08:40:38 -07:00
Henrik Rydgård
00f8ae5f2d Merge pull request #3772 from unknownbrackets/atrac-minor
Improve sceAtracGetBufferInfoForResetting()
2013-09-15 00:24:05 -07:00
Unknown W. Brackets
81c0a84322 Forgot a pointer check in atrac. 2013-09-14 21:22:02 -07:00