Henrik Rydgård
d04074a542
Atrac3 (not +): Keep decoding even on broken frames.
...
Fixes some music in some unofficial game mods, whose music got broken
in 1.18. Was reported through e-mail by Miguel.
2025-01-04 01:11:26 +01:00
Henrik Rydgård
e5d28975fa
Fix playback of mono Atrac3+ tracks in videos
...
This is rare, but does occur: #19782
I missed that setChannels could happen late in my refactor (#19033 )
2025-01-03 17:28:29 +01:00
Henrik Rydgård
bb2b214d5e
Minor FS logging
2024-12-29 09:31:50 +01:00
Henrik Rydgård
e93c80db4e
Cleaning up our SIMD header includes, using the new header
2024-12-19 16:08:48 +01:00
Henrik Rydgård
5326d87f9c
Rename CrossSIMD to SIMDHeader, but also keep CrossSIMD.h (will have a future use)
2024-12-19 15:15:43 +01:00
Henrik Rydgård
c91169e702
Restore removed <algorithm> includes.
...
Turns out these were needed after all. For some reason, on Windows and
Mac, <algorithm> gets auto-included by something else so I don't notice
when it's missing, and MSVC's include dependency tracker doesn't see it
either.
2024-12-19 09:53:07 +01:00
Henrik Rydgård
3e198c53b2
More include cleanup
2024-12-18 13:57:26 +01:00
Henrik Rydgård
83af54950f
Move more core-related stuff into Core.cpp/h
2024-12-08 11:54:58 +01:00
Henrik Rydgård
9ed8d8871e
Ge stepping without wait: Tex/Prim stepping works. Draw/Single have issues.
2024-12-05 00:36:48 +01:00
Henrik Rydgård
0df2a40487
Remove the "GPUInterface" base class. Not really useful, GPUCommon is pretty much the same thing.
2024-12-02 11:12:14 +01:00
Henrik Rydgård
84154e837e
Avoid running the initial savedata size scan except on games that need it.
2024-11-29 15:48:39 +01:00
Henrik Rydgård
7e194d15e2
For the free-space savedata scan, only scan relevant subdirectories.
2024-11-29 15:34:22 +01:00
Henrik Rydgård
7cbb60fd22
Bypass the PSP file system when calculating the savedata size to avoid a lock
2024-11-29 14:43:13 +01:00
Henrik Rydgård
6d2826dcb0
Move the MemoryStick free space calculation to a task instead of a thread
2024-11-29 14:35:46 +01:00
Henrik Rydgård
541c1c0861
Remove some obsolete debugging stuff
2024-11-28 11:19:01 +01:00
Henrik Rydgård
8a5be21140
MemStick screen: Call free_disk_space from async tasks
...
See #19522
2024-10-11 13:45:43 +02:00
Henrik Rydgård
4d6905672e
Bunch more linting
2024-10-10 11:57:10 +02:00
Herman Semenov
3c66f149d3
[Common/Core/Windows] Removed excess check pointer before delete or free()
2024-09-17 11:34:42 +02:00
Henrik Rydgård
16a56aa18b
Port over LunaMoo's compat flag for The Warriors video playback
...
This reverts to the old behavior before we started parsing mpeg headers,
that is, in 558b462
which is part of #8867 .
LunaMoo has this under "HackFixVideo" in his build.
See #8991 . This doesn't really "fix" that, but works around it.
2024-09-11 14:32:53 +02:00
Henrik Rydgård
c3f291e9fe
Fix for possible overflow in the resampler (can prevent some audio clicks)
...
Comment fixes
2024-09-04 12:56:15 +02:00
Henrik Rydgård
35ad5f95f2
Minor cleanup
2024-07-23 21:59:23 +02:00
Henrik Rydgård
091535744b
SimpleAudioDec: Fix crash in savestate load
2024-07-20 00:00:29 +02:00
Henrik Rydgård
320a1cfc8f
Merge pull request #19325 from Nabile-Rahmani/display-refresh-rate-option
...
[Feature] Option to override the display refresh rate
2024-07-17 20:25:38 +02:00
Henrik Rydgård
70cb1104dc
Kirk: Remove use of uninitialized stack as a random number source
...
This confused Valgrind and made me think we had another memory bug.
Turns out this is NOT the cause of #13781 , which I still don't
understand.
2024-07-16 22:04:41 +02:00
Henrik Rydgård
e01ca5b057
Logging API change (refactor) ( #19324 )
...
* Rename LogType to Log
* Explicitly use the Log:: enum when logging. Allows for autocomplete when editing.
* Mac/ARM64 buildfix
* Do the same with the hle result log macros
* Rename the log names to mixed case while at it.
* iOS buildfix
* Qt buildfix attempt, ARM32 buildfix
2024-07-14 14:42:59 +02:00
Nabile Rahmani
7af15c73bc
[Feature] Option to override the display refresh rate
...
This adds a per-game graphics option, `DisplayRefreshRate`, to override the display refresh rate.
It defaults to 60 Hz, and is located in Dev tools.
Games using variable timesteps benefit from higher refresh rates.
Closes #19319
2024-07-13 15:04:20 +02:00
Henrik Rydgård
510cf1891b
Random UWP text bugfix. Some warning fixes.
2024-06-05 12:38:43 +02:00
Henrik Rydgård
a653939380
Avoid crashing when atrac3 decoders fail to init due to bad params. Fixes Kosmodrones (though no music).
2024-06-03 12:01:42 +02:00
Henrik Rydgård
e5baebf139
Prevent a buffer overflow at the end of Atrac tracks.
...
Fixes #19177
2024-05-27 12:36:19 +02:00
Henrik Rydgård
1b366afa35
Refactor: Change *outBytes to *outSamples in AudioDecoder::Decode.
2024-04-16 15:31:11 +02:00
Henrik Rydgård
d402068745
Fix mono output from Atrac decoders. (sceAtrac*MOut* functions)
2024-04-15 11:50:32 +02:00
Henrik Rydgård
eef667c5ac
Separate the external interface used by sceSas
2024-04-14 10:40:12 +02:00
Henrik Rydgård
effae82208
sceAtrac: Do some renaming to make things make more sense
2024-04-13 10:35:39 +02:00
Henrik Rydgård
a1ac79c183
Remove all remaining FFMPEG use from sceAtrac.
2024-04-13 00:45:25 +02:00
Henrik Rydgård
c2bcdd3076
Buildfix with system ffmpeg
2024-04-12 16:45:45 +02:00
Henrik Rydgård
39b884cfb3
Atrac3/3+: Improve error handling
2024-04-12 11:18:26 +02:00
Henrik Rydgård
ff372f878d
Minor code cleanup
2024-04-11 16:54:29 +02:00
Henrik Rydgård
5ed77b58ca
Improve the AudioDecoder API to avoid having to call a function to get the bytes consumed
2024-04-11 16:49:00 +02:00
Henrik Rydgård
45936e8826
Atrac: Add "flush_buffers" api. The ffmpeg atrac decoder was missing this.
2024-04-11 16:35:27 +02:00
Henrik Rydgård
58cb2ba804
Fix playback of atrac3+ when block align not specified
2024-04-11 16:10:31 +02:00
Henrik Rydgård
b35b351802
Finally remove the AVCodecContext
2024-04-11 14:50:29 +02:00
Henrik Rydgård
6ea8efc0e9
Bypass AvCodecContext for atrac3plus, for a simpler API.
2024-04-11 14:39:59 +02:00
Henrik Rydgård
bf280eb410
Remove "SetExtraData" from AudioDecoder, pass in the data at creation instead
2024-04-11 14:39:59 +02:00
Henrik Rydgård
416ba81d20
Remove the channel_layout stuff
2024-04-11 14:39:59 +02:00
Henrik Rydgård
e871133fe6
Buildfixes
2024-04-11 14:39:59 +02:00
Henrik Rydgård
0d30728832
Remove context parameter from av_log
2024-04-11 14:39:59 +02:00
Henrik Rydgård
e10b90b718
Switch at3_standalone to C++ to avoid namespace clashes
2024-04-11 14:39:59 +02:00
Henrik Rydgård
d617aec8c8
Simplify away AVFrame from decoding functions, remove buffer pools
2024-04-11 14:39:59 +02:00
Henrik Rydgård
08d5de9f4c
Remove opt, dict, more
2024-04-11 14:39:59 +02:00
Henrik Rydgård
c6c67695b1
Hook up ATRAC3 too
2024-04-11 14:39:59 +02:00