Commit Graph

603 Commits

Author SHA1 Message Date
Henrik Rydgård
9a2ca4836a Add missing locking to AsyncIOManager 2023-05-04 23:56:46 +02:00
Henrik Rydgård
3800e88ecb Fix wrong "game is running slow" warning on high-refresh-rate devices. 2023-04-30 11:01:09 +02:00
Henrik Rydgård
349b73acec
Move the resampler usage to a common file, AudioCommon. (#17176)
* Move the resampler usage to a common file, AudioCommon.

Ports that don't want to use the resampler can now simply exclude that
file and provide their own implementation. Next up, libretro will be
converted to do it that way.

* Android.mk typo

* libretro makefile fix

* libretro buildfix

* libretro: try a different approach for the temporary solution

* duh

* double duh
2023-03-24 17:19:57 +01:00
Henrik Rydgård
e95662cebf Separate out the core interface around the resampler, in order to move it out from __sceAudio. 2023-03-24 14:48:53 +01:00
Unknown W. Brackets
9909e0d668 Sas: Adjust Rockman 2 sustain on init only. 2023-01-14 16:57:49 -08:00
Unknown W. Brackets
92585403c4 Sas: Make ADSR fields private. 2023-01-14 16:55:40 -08:00
Henrik Rydgård
b118ffadea Add workaround for hung music notes in Rockman Dash 2
Fixes #11442. Or at least should, I haven't tested this, just followed the
discussion in the issue.

According to this issue, this is a game bug that happens on real hardware
too, due to a lousy job porting the game to the PSP, most likely, which has
different ADSR (note envelope) behavior.
2023-01-12 11:33:59 +01:00
Unknown W. Brackets
dea9cac16c Core: Add range checks to some helpers and similar. 2023-01-09 16:56:18 -08:00
Unknown W. Brackets
c44d787df4 Mpeg: Check memory access range on GetPointer(). 2023-01-09 16:53:10 -08:00
Unknown W. Brackets
68cfaf90ad Mpeg: Move some fields to private. 2023-01-07 06:54:25 -08:00
Unknown W. Brackets
94bab4506f Mpeg: Close codecs from new streams.
These were actually leaking.
2023-01-07 06:44:02 -08:00
Henrik Rydgård
b56eef487c Strict mode checking - no way to forget detaching now.
And if we forget to attach, boom. Hopefully I caught all of them.
2023-01-05 08:38:52 +01:00
Unknown W. Brackets
9cfcbc46e6 Global: Cleanup initialization/pointer checks.
Cleaning up a lot of cases of uninitialized data, unchecked return values
for failures, and similar.
2022-12-10 21:13:36 -08:00
Unknown W. Brackets
a7b7bf7826 Global: Set many read-only params as const.
This makes what they do and which args to use clearer, if nothing else.
2022-12-10 21:13:36 -08:00
lainon
3cdf72b68b Better readability and optimization insertion into container by replacing 'insert' -> 'emplace', 'push_back' -> 'emplace_back' 2022-09-30 12:35:28 +03:00
Henrik Rydgård
e6403d7157 Split GetPointer into two versions, to help with const correctness 2022-07-24 13:26:19 +02:00
ZiHan Huang
33aeac694d ffmpeg: fix compile bug
Err is generated when USE_FFMPEG is set to OFF, The Camera
module relies on FFMPEG

Signed-off-by: ZiHan Huang <zack.huang@rock-chips.com>
2022-06-24 16:50:56 +08:00
Unknown W. Brackets
2479d52202 Global: Reduce includes of common headers.
In many places, string, map, or Common.h were included but not needed.
2022-01-30 16:35:33 -08:00
Unknown W. Brackets
3df6cb704f Global: Fix some type conversion warnings.
Hidden by some warning disables.
2022-01-30 16:09:33 -08:00
Unknown W. Brackets
48b597a1b9 Display: Move core counters/stats to HW file.
This separates things better, so not everything is pulling in HLE.
2022-01-30 11:53:48 -08:00
Unknown W. Brackets
ad2e380987 Display: Move listeners to separate HW file.
Mixing this in with the HLE management funcs was messy.
2022-01-30 09:41:08 -08:00
Unknown W. Brackets
d45fe93588 Mp3: Output PCM data using even/odd buffer slot.
This makes sense since the audio APIs are all async.
2022-01-27 00:22:44 -08:00
Unknown W. Brackets
914d022eef Mp3: Allow decode with NULL out pointer. 2022-01-27 00:22:44 -08:00
Unknown W. Brackets
4903e14aae Mp3: Cleanup AuCtx constructor. 2022-01-27 00:22:43 -08:00
Unknown W. Brackets
b1e31d89e1 Audio: Correct protection against time skew. 2021-10-10 15:05:51 -07:00
Unknown W. Brackets
01b99eff98 Audio: Cleanup buffer wrap code.
This is a bit more straight-forward.
2021-10-09 08:17:55 -07:00
Henrik Rydgård
48310d15a9 Add metafilesystem hook to add optimized implementations of compute recursive directory size 2021-09-11 18:12:29 +02:00
Unknown W. Brackets
906664b9d8 Io: Cache SAVEDATA usage between writes.
Some games will loop over saves to check the size of each, and calculating
the total usage is expensive.  We don't need to recalculate each time.
2021-09-11 07:29:15 -07:00
Henrik Rydgård
a7859cfd2a Fix some comments and a string 2021-08-18 09:28:17 +02:00
Henrik Rydgård
928bc88b01 Rename Unthrottle to Fast-forward globally 2021-08-18 09:28:13 +02:00
Unknown W. Brackets
ff9b9f7321 Sas: Add option to control reverb volume.
This also allows you to turn it off.
2021-08-09 20:47:24 -07:00
Henrik Rydgård
f4a6d291e1 Common: Capitalize setCurrentThreadName(). 2021-04-30 23:02:36 -07:00
Henrik Rydgård
8e953b2a97
Merge pull request #14383 from unknownbrackets/threadpool
Use threads more on startup to improve load time
2021-04-18 09:57:33 +02:00
Unknown W. Brackets
a3680ca3cb Io: Calculate memory stick size on a thread.
If you have a bunch of saves/states/etc. this might be a bit slow.
2021-04-16 01:15:23 -07:00
Unknown W. Brackets
7a1398844a Debugger: Add simple API to control tagging detail.
In case a client requires it.
2021-04-04 20:23:51 -07:00
Unknown W. Brackets
aa9b19be45 Debugger: Note atrac/sas reads from memory more. 2021-04-03 19:06:46 -07:00
Unknown W. Brackets
13ec384dbe Build: Explicitly include ppsspp_config.h.
This adds it to all files that use it.  Not all our builds include the
file.
2021-03-02 21:04:03 -08:00
Unknown W. Brackets
161ddbeac0 Mpeg: Allow full use of the buffer queue.
Track filled size separately so we can be entirely filled.
2021-02-28 08:56:08 -08:00
Henrik Rydgård
39198b53a5
Merge pull request #14205 from unknownbrackets/mpeg-minor
Mpeg: Correct stream buffer wrapping, cleanup
2021-02-22 16:18:13 +01:00
Unknown W. Brackets
e9325cdb97 Mpeg: Correct stream buffer wrapping, cleanup. 2021-02-22 06:54:40 -08:00
Henrik Rydgård
7cefafeb31
Merge pull request #14199 from unknownbrackets/ffmpeg-update
Mpeg: Set low latency flag for video decode
2021-02-21 18:42:33 +01:00
Unknown W. Brackets
d6dc6e9d64 Mpeg: Set low latency flag for video decode. 2021-02-21 09:05:48 -08:00
Henrik Rydgård
a062c177a3
Merge pull request #14188 from unknownbrackets/ffmpeg-update
Additional fixes for FFmpeg 3.1+
2021-02-21 10:19:36 +01:00
Henrik Rydgård
2f3bc2d373
Merge pull request #14056 from unknownbrackets/debugger-mem
Track memory allocations and writes for debug info
2021-02-21 10:18:11 +01:00
Unknown W. Brackets
9d031caa9d Mpeg: Assume 29.97 if bad frame rate returned.
FFmpeg 3.1+ reads the frame rate only into private data, and can only expose
it publicly when using the find stream info API that reads too far ahead.
2021-02-20 15:36:53 -08:00
Unknown W. Brackets
d8e3bae2da Mpeg: Prevent sending flush packets to decode. 2021-02-20 15:15:21 -08:00
Unknown W. Brackets
54dd4e4c0c Mpeg: Remove request_probe usage in newer FFmpeg.
No longer needed.
2021-02-18 00:32:16 -08:00
Unknown W. Brackets
0ab6f1d080 Mpeg: Update videos to latest FFmpeg packet pump. 2021-02-18 00:20:27 -08:00
Unknown W. Brackets
e3be3d5f7b Mpeg: Clarify fallback problems.
Also, modify it in case some packager was patching, so they see this.
2021-02-18 00:20:27 -08:00
Unknown W. Brackets
e5849d109d Mpeg: Correct stream detection in newer FFmpeg. 2021-02-18 00:20:27 -08:00