Commit Graph

7815 Commits

Author SHA1 Message Date
Henrik Rydgard
b39206f922 Use the app cache directory on Android for the shader cache. 2016-01-17 22:15:23 +01:00
Unknown W. Brackets
63aa4291eb Atrac: Fix savestates.
Darn, totally forgot.  This should populate acceptable values for old
streamed atrac as well.
2016-01-17 10:05:15 -08:00
Unknown W. Brackets
d5196b44f9 Minor tweaks. 2016-01-17 09:45:55 -08:00
Henrik Rydgard
3ba911bf07 Replace some calls to fopen with File::OpenCFile (utf8). 2016-01-17 15:59:20 +01:00
Henrik Rydgård
b2140d73e7 Merge pull request #8435 from unknownbrackets/atrac-stream
Calculate stream data info a bit more accurately
2016-01-17 10:30:09 +01:00
Henrik Rydgård
93490f5329 Merge pull request #8436 from unknownbrackets/atrac-lowlevel
Simplify lowlevel atrac decoding a lot
2016-01-17 10:26:59 +01:00
Unknown W. Brackets
74d40115a0 Mpeg: Initialize esBuffer to safer values.
Makes the audio work properly in Dan Ball Senki W (#4786.)
2016-01-17 00:31:22 -08:00
Unknown W. Brackets
c03f6c23ed Mpeg: Return errors when no audio is available.
Before, we were only returning an error once, in an effort to log only
once.  This meant sometimes games would not realize they needed to add
packets.
2016-01-17 00:22:46 -08:00
Unknown W. Brackets
849df69690 Atrac: Simplify lowlevel init more. 2016-01-16 23:12:12 -08:00
Unknown W. Brackets
a686ca69fd Atrac: Simplify lowlevel decoding.
No need for all these variables that just spin and do nothing.
2016-01-16 23:03:22 -08:00
Unknown W. Brackets
a4d875cd2a Atrac: Stop generating headers in lowlevel. 2016-01-16 22:46:24 -08:00
Unknown W. Brackets
45e6f9e9b7 Atrac: Fix lowlevel jointStereo usage.
Seems this value is supposed to be (channels << 3) form the lowlevel code,
which is believable.  FFmpeg skips it anyway.

Also, need to set the flag so it gets used.
2016-01-16 22:35:39 -08:00
Unknown W. Brackets
4e20b61d3a Atrac: Fix some confusing variable use in lowlevel. 2016-01-16 22:35:13 -08:00
Unknown W. Brackets
53e990e116 Atrac: Fix a leak from an unused var. 2016-01-16 22:34:45 -08:00
Unknown W. Brackets
a2417b4779 Atrac: Ensure correct fileoffset when adding data.
If we looped, especially in the middle or toward the end, this ensures the
data ends up in the correct place in our larger buffer.
2016-01-16 18:36:22 -08:00
Unknown W. Brackets
e41a1f476f Atrac: Simulate ringbuffer for writable bytes.
Ringbuffer is not actually read from PSP RAM, and there are a couple
inaccuracies, but this should be a lot better than before.
2016-01-16 18:34:44 -08:00
Unknown W. Brackets
23523a2fdc Atrac: Add missing output channels for AA3.
Although, default was 2 so this shouldn't change anything.
2016-01-16 18:10:57 -08:00
Unknown W. Brackets
d3ee48a770 Atrac: Make buffer init functions more consistent. 2016-01-16 18:10:35 -08:00
Henrik Rydgård
067095e2b4 Merge pull request #8410 from latot/mini
little changes
2016-01-17 00:44:07 +01:00
Unknown W. Brackets
cf9cb798fc Atrac: Remove unused variables, cleanup some names. 2016-01-16 14:47:07 -08:00
Unknown W. Brackets
aac603534a Reset failedDecode when the game sets new data.
Should not last forever.
2016-01-16 14:01:12 -08:00
Unknown W. Brackets
d97dfac594 Atrac: Log bad data more consistently.
Let's always give the HLE func in the actual error.
2016-01-16 13:59:38 -08:00
Unknown W. Brackets
7c07922076 Atrac: Clean up some logging. 2016-01-16 13:44:54 -08:00
Henrik Rydgård
6d3368b088 Merge pull request #8433 from hrydgard/whitelist-vertex-depth-rounding
Specify which games need vertex depth rounding instead of which ones don't
2016-01-16 19:01:37 +01:00
latot
e82620c572 remove
remove
2016-01-16 09:32:39 -03:00
Henrik Rydgård
07dadca89c Merge pull request #8417 from unknownbrackets/atrac-second
Basic handling of sceAtrac second buffer
2016-01-16 11:48:47 +01:00
Henrik Rydgard
7e24801fc1 Specify which games need vertex depth rounding instead of which ones don't.
Vertex depth rounding is a not-fully-accurate hack, and most games are better off with the extra depth precision
of 24-bit Z than reducing it to a not-fully-accurate 16-bit. So let's only use it where necessary, like in Phantasy Star.

See issue #8187.
2016-01-16 11:31:27 +01:00
Henrik Rydgard
03674fd571 Flip around how compat.ini works (now the settings are the categories, games are listed within) 2016-01-16 11:24:42 +01:00
Unknown W. Brackets
d3da6d8c6e Atrac: Validate second buffer on reset position. 2016-01-12 00:19:35 -08:00
Unknown W. Brackets
a317b10777 Atrac: Keep track of the set second buffer.
Not actually used yet, but this way our context/etc. can be right.
2016-01-12 00:19:34 -08:00
Unknown W. Brackets
40bd31f50b Atrac: Request second buffer data.
It's not used, but at least we ask for it properly.
2016-01-12 00:19:33 -08:00
Unknown W. Brackets
397094651c Atrac: Skip copying to data_buf when unused. 2016-01-12 00:19:33 -08:00
Unknown W. Brackets
b29e856055 Atrac: Remove some unused calculations.
Halfway buffers now always calculate writableBytes realtime.
2016-01-12 00:19:32 -08:00
Unknown W. Brackets
0fc774927f jit: Minor cleanups. 2016-01-10 12:28:29 -08:00
Henrik Rydgard
b4dd094f56 x86jit: Save a MOV in many cases of "jr ra" 2016-01-10 12:28:00 -08:00
latot
53ac6d98d8 Little things
back 1

other little change, join 2 in 1
2016-01-09 20:44:02 -03:00
Henrik Rydgard
94c91e199a Minor GPU interface change needed for a WIP backend 2016-01-06 23:53:21 +01:00
Henrik Rydgard
e11d0a7e1c Minor GPU interface cleanup 2016-01-06 23:49:02 +01:00
Unknown W. Brackets
2b5d38d2d0 Buildfix. 2016-01-06 07:20:41 -08:00
Unknown W. Brackets
b1e10894a4 Don't forget global setting when switching configs.
Fixes #8393.
2016-01-05 23:02:19 -08:00
Unknown W. Brackets
02f6b3dec7 Refactor config setting iteration.
Cleaner.
2016-01-05 23:01:49 -08:00
Unknown W. Brackets
aa0055cea7 Track the running GPU backend separate from config.
This way we can change the config directly when we want to save a new
setting, rather than having hacks to use a temp var.
2016-01-05 22:37:28 -08:00
Henrik Rydgård
f0812297a6 Merge pull request #8376 from unknownbrackets/gpu-depth
Correct universally for clamped depth range
2016-01-04 09:55:02 +01:00
Unknown W. Brackets
abc0f27c95 Merge pull request #8373 from daniel229/replacefuncs
Replace functions in games
2016-01-03 17:11:59 -08:00
daniel229
1e984b48ef update functions 2016-01-04 09:08:52 +08:00
Unknown W. Brackets
18cdf9f352 Remove the depth range hack.
Ths removes the game-specific hack to workaround depth issues.
2016-01-03 12:05:59 -08:00
Henrik Rydgård
5bd72ea268 Merge pull request #8347 from hrydgard/graphics-context
Graphics context
2016-01-03 18:54:58 +01:00
daniel229
de8503f83b Replace function in Shinigami to Shoujo 2016-01-03 22:35:46 +08:00
daniel229
05612bbc25 Replace function in Little Busters! Converted Edition 2016-01-03 22:28:38 +08:00
daniel229
3b461a00cc Replace function in ATV Offroad Fury Blazin' Trails 2016-01-03 22:20:50 +08:00