Unknown W. Brackets
596ecdc431
Atrac: Allow data to extend outside RIFF size.
...
This seems technically incorrect, but it's allowed on the PSP, possibly
intentionally due to data shipped truncated by accident?
2015-10-25 17:04:21 -07:00
Unknown W. Brackets
522a1743f4
Atrac: Return an error if there's no data chunk.
2015-10-25 17:04:20 -07:00
Unknown W. Brackets
f7fa0a06d4
Atrac: Reset the fileoffset only when adding data.
...
Otherwise, it's only a seek. For example, a seek to 0, as commonly seen.
2015-10-24 10:37:14 -07:00
Unknown W. Brackets
23c27d61df
Improve an error return value.
2015-10-18 13:02:05 -07:00
Unknown W. Brackets
d0a9813844
Account for uneven sized chunks by rounding up.
...
Chunks have an extra pad byte if the size is uneven. This probably isn't
happening, but just to be safe.
2015-10-18 12:50:40 -07:00
Unknown W. Brackets
8fa843bbc3
Atrac: attempt to power through bad frames.
2015-10-17 16:20:27 -07:00
Unknown W. Brackets
d30508ac43
Buildfix for Symbian/Blackberry/etc.
2015-10-17 16:20:27 -07:00
Unknown W. Brackets
60378dd59d
Atrac: Hack to make seeking in GTA work.
2015-10-17 16:20:26 -07:00
Unknown W. Brackets
7d32876610
Atrac: Cleanup FFmpeg context ptr management.
2015-10-17 16:20:25 -07:00
Unknown W. Brackets
b47458eabb
Atrac: fix loading certain savestates.
...
Some worked with it that high, but others not.
2015-10-17 16:20:24 -07:00
Unknown W. Brackets
5177f16c8d
Atrac: Use constants for the states, more clarity.
2015-10-17 16:20:23 -07:00
Unknown W. Brackets
310aa6ed47
Atrac: Remove avio helpers.
2015-10-17 16:20:22 -07:00
Unknown W. Brackets
6420b679d4
Atrac: Split out low-level packet handling.
...
So we don't have the hack in the other code at all.
2015-10-17 16:20:22 -07:00
Unknown W. Brackets
5174f7df69
Atrac: Read in the jointStereo flag for ATRAC3.
2015-10-17 16:20:21 -07:00
Unknown W. Brackets
27a10bc49f
Atrac: Fix AA3 dataOff value.
...
Note: will still be wrong in savestates...
2015-10-17 16:20:20 -07:00
Unknown W. Brackets
7d0dd0b94a
Atrac: Stop using avio/avformat entirely.
...
Probably breaks AA3 support at this point...
2015-10-17 16:20:20 -07:00
Unknown W. Brackets
2037977292
Revert compatibility flag for GTA Music Hack.
...
This reverts commit eb4ca0cf81 .
2015-10-17 16:20:19 -07:00
Unknown W. Brackets
4e7c59daae
Fix minor typo.
2015-10-12 22:14:14 -07:00
Unknown W. Brackets
679b64ef5a
Atrac: calculate instead of using header value map.
...
These are knowable values, so there's no real benefit to a static table
except potentially error detection.
2015-10-12 22:10:35 -07:00
Henrik Rydgard
eb4ca0cf81
Add a compatibility flag to revert sceAtrac to before #6976 . Makes audio work in GTA again.
...
Hopefully we will find a better fix in the future.
Also see issue #7863 .
2015-09-27 11:51:46 +02:00
Henrik Rydgard
9937b41461
ARM64: Fix vi2uc and vi2us and enable them.
2015-07-11 16:46:11 +02:00
Unknown W. Brackets
ffe7ef1ee2
Avoid spurious warnings in sceAtrac.
...
Valkyrie Profile for example calls this, doesn't seem like 0 matters.
2015-04-12 10:35:53 -07:00
Henrik Rydgård
a269e118b3
Merge pull request #7658 from unknownbrackets/debugger
...
Make it easier to use memchecks in HLE
2015-04-06 17:03:14 +02:00
Unknown W. Brackets
2450724be2
Make Memory::Memcpy() execute memchecks directly.
...
This makes it easier to handle breakpoints in HLE.
2015-04-05 18:09:20 -07:00
Unknown W. Brackets
0fc64dc717
Return an error when the atrac stream is full.
2015-04-05 17:22:38 -07:00
Unknown W. Brackets
ae4811d0d1
Still fudge seek positions for low level.
...
Since in this case we're tricking it into reading the same buffer area.
2015-03-26 22:34:45 -07:00
Unknown W. Brackets
425eed7bea
Keep separate track of ffmpeg pos and decode pos.
...
FFmpeg buffers, so forcing the pos only makes FFmpeg read in garbage
because it doesn't know that you seeked in the bytestream on it.
2015-03-26 20:23:37 -07:00
Henrik Rydgård
62e621f8a1
Merge pull request #6976 from unknownbrackets/atrac-minor
...
When seeking to atrac positions, force alignment and start from zero
2015-03-26 00:29:51 +01:00
Unknown W. Brackets
fcf0518223
Update all the HLE tables with arg and ret info.
2015-03-22 20:51:55 -07:00
sum2012
35c04e1187
Fix tab
2015-03-22 06:35:49 +08:00
sum2012
2c89d78f9d
Add a logging in sceAtracGetRemainFrame
2015-03-22 06:16:28 +08:00
sum2012
1ce1da9e73
Remove another blank
2015-03-20 21:38:13 +08:00
sum2012
b92c0538b6
Remove blank
2015-03-20 21:36:31 +08:00
sum2012
67e847366a
Add more log in sceAtrac
2015-03-19 22:34:35 +08:00
sum2012
86c76fc4dc
Add remain frame information in sceAtracGetRemainFrame
2015-03-18 00:29:32 +08:00
Chin and Henrik Rydgard
22593cddcc
Use pre-increment instead of post-increment for iterators, and use auto for some iterators
2015-03-01 16:55:47 +01:00
Chin and Henrik Rydgard
ff5d408c81
Combine two ifs
2015-03-01 16:48:25 +01:00
Unknown W. Brackets
f200d5df94
Use structs for the lowlevel at3 lookup tables.
...
More sensible this way.
2015-02-27 21:02:20 -08:00
daniel229
3b59c72280
at3plusHeaderMap
2015-02-27 22:29:14 +08:00
Unknown W. Brackets
a8b59e171b
Fix a few type comparison warnings.
2015-02-22 13:31:23 -08:00
sergiobenrocha2
9dbd18e59d
Ensure that it will use ffmpeg from ppsspp, not from the system.
2015-02-03 17:46:51 -02:00
Unknown W. Brackets
7a974b364c
Cap writable bytes to filesize when streaming.
...
Otherwise we may ask for more than is possible at the end.
2015-02-01 15:13:52 -08:00
Unknown W. Brackets
b36a25f602
Even if we don't get enough data, fill what we can.
2015-02-01 15:13:51 -08:00
Unknown W. Brackets
9a8f61eced
Seek forward from 0 as well.
...
Otherwise we also get incorrect data.
2015-02-01 15:13:51 -08:00
Unknown W. Brackets
97fd19f8cd
Seek backwards by force decoding, align seeks.
...
It seems like we can only (safely) seek to sample boundaries, which makes
sense. Also, we get wrong data unless we "warm" it by seeking from 0, it
seems like.
This makes looping produce correct data. Fixes #6970 .
2015-02-01 15:13:50 -08:00
Unknown W. Brackets
9a26758a13
Fix a savestate loading issue.
...
Maybe just older savestates. Sometimes we have block_align already, but
not a valid atracBytesPerFrame, so skip it.
2015-01-19 09:03:53 -08:00
Unknown W. Brackets
6777dcd0cc
Validate the fmt chunk size more correctly.
2015-01-17 16:35:25 -08:00
Unknown W. Brackets
7b29c645ba
Correct parsing of the atrac RIFF fmt chunk.
...
It's just a standard fmt with extra data. We were reading the block align
incorrectly.
Also, set the block align to help FFmpeg.
2015-01-17 15:47:36 -08:00
Unknown W. Brackets
5687f10801
Improve atrac file parsing.
...
Seems like it is willing to parse multiple RIFF chunks. This may generate
more accurate errors, at least they match tests better.
2015-01-17 15:25:11 -08:00
Unknown W. Brackets
61d43f1616
Fix some glitches in the new AA3 handling.
...
Matches a test better.
2015-01-04 16:34:58 -08:00