Henrik Rydgård
aa94867128
Warning fixes
2024-05-20 10:04:11 +02:00
Henrik Rydgård
a059750f5a
Add basic checkbox UI for GPI switched, add display of GPO LEDs
...
Try it with Parappa.
2024-05-12 18:01:25 +02:00
Henrik Rydgård
8bfba2ce35
Fix mono audio with sceAtracLowLevelDecode.
...
Fixes #19117
2024-05-10 13:36:37 +02:00
Nemoumbra
8409914b79
Added deciphering of ~SCE headers (cracked by me)
2024-05-09 04:43:45 +03:00
Henrik Rydgård
0b91aa50ee
Improve memory safety, add bugfix to little-used sysclib functions
2024-05-05 14:19:49 +02:00
Henrik Rydgård
d769c3223c
Fix camera mirroring color issue, fix warning
2024-05-05 11:20:29 +02:00
Henrik Rydgård
e631be3607
Make a simpler CMakeLists.txt for zstd
2024-05-04 10:48:54 +02:00
Katharine Chui
b570cacd90
add Memory::IsValidNullTerminatedString
2024-05-01 22:58:01 +08:00
Katharine Chui
49cd9c76d9
sysclib_sprintf psp memory bound checking instead of length limits
2024-05-01 20:23:47 +08:00
Katharine Chui
fa0eaebfb5
cleanup
2024-05-01 17:32:13 +08:00
Katharine Chui
7ff48f97c3
implement sysclib_sprintf
2024-05-01 01:43:24 +08:00
Henrik Rydgård
917f5897bd
Add back a lost-in-refactoring hack for the SasAudio/sceAtrac integration.
...
Fixes #19075
2024-04-29 19:58:11 +02:00
AdamN
bbe2c341ed
oops
2024-04-20 12:41:27 +07:00
AdamN
1cf7254cb0
Update sceAudio.cpp
2024-04-20 12:06:49 +07:00
Henrik Rydgård
7d46f5a0a8
Merge pull request #19074 from hrydgard/more-atrac-updates
...
More sceAtrac code cleanup and comments
2024-04-17 01:37:27 +02:00
Henrik Rydgård
5b625bfd3e
Share GetSecondBufferInfo between implementations
2024-04-16 23:07:03 +02:00
Henrik Rydgård
f05f9a6de3
Code cleanup and comments
2024-04-16 22:54:53 +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
5470885178
Add some basics.
2024-04-15 14:08:01 +02:00
Henrik Rydgård
f3d6c93339
Add empty AtracCtx2 implementation, and a dev setting to select it. Savestates don't work.
2024-04-15 13:50:16 +02:00
Henrik Rydgård
5e8a46fde0
Slim down the AtracBase class
2024-04-15 12:50:51 +02:00
Henrik Rydgård
6c648a2cdd
Use AtracBase instead of Atrac in sceAtrac (so now we can replace it)
2024-04-15 12:50:51 +02:00
Henrik Rydgård
14f141b1b8
Split Atrac into AtracBase and Atrac
2024-04-15 12:50:50 +02:00
Henrik Rydgård
d03f2a5888
Atrac: Add missing accessors
2024-04-15 12:50:50 +02:00
Henrik Rydgård
a866e07082
Merge pull request #19063 from hrydgard/atrac-change-databuf-check
...
atrac: Change the databuf check in sceAtracDecodeData
2024-04-15 12:50:38 +02:00
Henrik Rydgård
4680d87fcd
Change the databuf check in sceAtracDecodeData
...
Making a separate commit for bisection's sake.
2024-04-15 12:19:39 +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
3e49a32fa8
Comment fixes
2024-04-15 11:16:03 +02:00
Henrik Rydgård
fcf0d8e06e
Add an outputChannels parameter to SetData to simplify the code
2024-04-15 11:16:03 +02:00
Henrik Rydgård
3c700aab35
Break out the separate analyze functions.
2024-04-15 11:16:00 +02:00
Henrik Rydgård
9d0dac5acb
Move channels into Track
2024-04-15 11:13:47 +02:00
Henrik Rydgård
0a275883ec
Move bitrate and jointstereo fields into Atrac
2024-04-15 11:13:47 +02:00
Henrik Rydgård
5c1ab7e699
Move dataOff into Track
2024-04-15 11:13:45 +02:00
Henrik Rydgård
fe17ff6e69
Move loop info into Track
2024-04-15 11:12:47 +02:00
Henrik Rydgård
15b71af95f
Move endSample into track_
2024-04-15 11:12:45 +02:00
Henrik Rydgård
3f96f69b70
Move firstSampleOffset_ into Track
2024-04-15 11:08:47 +02:00
Henrik Rydgård
976f7e5ce6
Move bytesPerFrame into track
2024-04-15 11:06:40 +02:00
Henrik Rydgård
babf2e1a3a
Move codecType_ into track_
2024-04-15 11:06:40 +02:00
Henrik Rydgård
efd9962c6e
Start separating out static track parameters: Move first_.filesize to track_.fileSize
2024-04-15 11:06:40 +02:00
Henrik Rydgård
bd84e30553
Start breaking out Analyze* functions
2024-04-15 11:06:40 +02:00
Henrik Rydgård
c9f5ccee3e
Add comment
2024-04-15 11:06:11 +02:00
Henrik Rydgård
2a3b6b8cfb
Remove unnecessary check, allowing us to de-indent
2024-04-14 16:29:20 +02:00
Henrik Rydgård
0f0149d08b
Split out the Atrac context class into AtracCtx.cpp/h
2024-04-14 14:48:42 +02:00
Henrik Rydgård
9bb136f871
Remove an unnecessary enum
2024-04-14 14:48:41 +02:00
Henrik Rydgård
35578f0a2e
More member functions
2024-04-14 11:25:19 +02:00
Henrik Rydgård
eeaa3c8445
Make more functions member functions of Atrac
2024-04-14 10:55:17 +02:00
Henrik Rydgård
7d3fc65478
Make Decode and GetResetBufferInfo member functions of Atrac.
2024-04-14 10:48:01 +02:00
Henrik Rydgård
eef667c5ac
Separate the external interface used by sceSas
2024-04-14 10:40:12 +02:00
Henrik Rydgård
09be5935ab
Add accessor for bufferState_, cleanup
2024-04-14 10:26:41 +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
242a87b2dd
Inline FillPacket to make the next step easier
2024-04-13 00:26:37 +02:00
Henrik Rydgård
ea07fdbd86
sceAtrac: Create standalone decoders as well as ffmpeg. Implement LowLevelDecode.
2024-04-13 00:19:04 +02:00
Henrik Rydgård
683a30e964
Remove more indentation
2024-04-12 14:25:46 +02:00
Henrik Rydgård
6bed7137f7
Remove excessive indentation
2024-04-12 14:25:46 +02:00
Henrik Rydgård
ba42c07cfc
_AtracDecodeData: Restructure the inner loop a bit.
2024-04-12 14:25:46 +02:00
Henrik Rydgård
1692922cd8
Use proper returns in _AtracDecodeData
2024-04-12 14:25:46 +02:00
Henrik Rydgård
c43442f801
Improve and cleanup logging in sceAtrac
2024-04-12 13:53:17 +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
3de85c8d14
Remove more unnecessary accessors
2024-04-11 14:18:07 +02:00
Henrik Rydgård
423e3d3338
Merge pull request #19035 from GermanAizek/fix-always
...
[GPU/HLES] 'fs' its already NULL, removed excess delete and bufferState_ always ATRAC_STATUS_HALFWAY_BUFFER
2024-04-11 14:17:26 +02:00
Herman Semenov
f625f18eba
[GPU/HLES] 'fs' its already NULL, removed excess delete and bufferState_ always ATRAC_STATUS_HALFWAY_BUFFER
2024-04-11 14:52:55 +03:00
Henrik Rydgård
5b3be0d720
Update USE_FFMPEG checks
2024-04-10 18:40:02 +02:00
Henrik Rydgård
fc58a97024
Merge pull request #19027 from GermanAizek/char-as-param-for-string-methods
...
Minor optimize methods std::string using param as char with simpler implementation
2024-04-10 17:16:14 +02:00
Herman Semenov
c20cb3f4be
Minor optimize methods std::string using param as char with simpler implementation
2024-04-10 17:57:05 +03:00
Henrik Rydgård
c6f5ac0c81
Merge pull request #19024 from hrydgard/audio-decoder-refactor
...
Audio format decoder: Refactor to enable multiple decoder implementations
2024-04-10 14:52:03 +02:00
Henrik Rydgård
9b57375b07
Merge pull request #19019 from hrydgard/plugins-on-game-screen
...
Add option to disable plugin, show list of available plugins on game screen
2024-04-10 13:14:21 +02:00
Henrik Rydgård
1805910fac
More refactoring
2024-04-10 12:22:58 +02:00
Henrik Rydgård
1938d3b876
More prep for plugging in alternate audio decoders
2024-04-10 12:14:58 +02:00
Henrik Rydgård
32ca7ab59a
Minor code cleanups
2024-04-10 12:07:03 +02:00
Henrik Rydgård
ddbe0e853b
Remove unused code
2024-04-10 00:40:16 +02:00
Henrik Rydgård
e19e9b2793
Delete pointless accessors, update some comments
2024-04-10 00:35:48 +02:00
Henrik Rydgård
c6d2fba2f1
Merge pull request #19022 from hrydgard/minor-fixes
...
Some logging fixes
2024-04-09 19:16:12 +02:00
Henrik Rydgård
ddd821b6ce
Improve logging in pgd_open
2024-04-09 17:41:56 +02:00
sum2012
81057bf535
Try to fix loop in scePsmfPlayerGetVideoData
...
Fix #19011
2024-04-09 21:55:57 +08:00
Henrik Rydgård
4b34e4cfb4
Add option to disable plugins completely
2024-04-09 13:13:30 +02:00
Henrik Rydgård
e903287f4c
Game info screen: Show list of any plugins that will be loaded on start of the game
2024-04-09 12:55:50 +02:00
Henrik Rydgård
79bdc8a9ff
Some constification in sceChnnlsv
2024-04-07 12:31:45 +02:00
Henrik Rydgård
d947de601e
Apply minor cleanup from #18990
...
See #18990
2024-04-04 15:48:09 +02:00
Henrik Rydgård
746696ab58
Merge pull request #18970 from GermanAizek/cleanup
...
Cleanup excess redefines and maybe fixed result in HLE sceIo::sceIoGetDevType()
2024-04-02 13:55:27 +02:00
Herman Semenov
0f94ac9189
Cleanup excess redefines and maybe fixed result in HLE sceIo::sceIoGetDevType()
2024-04-02 14:25:26 +03:00
Henrik Rydgård
971320cf66
Fix memory leak on shutdown in sceHeap
2024-04-02 12:02:19 +02:00
Herman Semenov
cfb77ce83e
[Core/HLE/Common/UI] Using C++17 make smart pointers
2024-04-01 18:12:27 +03:00
Henrik Rydgård
c5791764d8
Make the i18n T function use std::string_view
...
Buildfixes, crashfixes
One more
Android buildfix
Buildfix Qt
2024-02-12 18:44:39 +01:00
Andrew Udvare
930b7f644d
ffmpeg: Improved fix for checking if const AVCodec* is necessary
2024-02-05 14:37:09 -05:00
Henrik Rydgård
2cd7b5cceb
Hacky compat workaround for Resistance's ad-hoc mode
...
Slicing the slow memcpy calls messes up some timing so it crashes. Too
hard to fix for 1.17.1, so we do this :(
2024-02-04 00:43:48 +01:00
Henrik Rydgård
c0bc6446dd
Improve assert, cleanup
2024-02-01 16:33:01 +01:00
Henrik Rydgård
ce5f157040
More paranoia
2024-01-31 10:48:35 +01:00
Henrik Rydgård
7af6501a6f
UI: ScrollView: Improve interaction with the scroll bar thingy, avoid accidental clicks
2024-01-31 09:37:11 +01:00
Henrik Rydgård
9979372a97
Assorted paranoia, get rid of an allocation in the audio loop
2024-01-29 10:37:38 +01:00
Henrik Rydgård
ec411e0ecb
Change when we call rc_client_do_frame to something that matches libretro
...
There's conflicting advice on when to do it, but to avoid people testing
their cheats twice, let's match as closely as we can.
This means that 30hz games will only have the callback run at 30hz.
The duplicate frames option may interfere, just like it may on libretro.
2024-01-22 19:35:26 +01:00
Henrik Rydgård
20626ebfee
When we enforce run-behind due to multiplayer, show "Network connected" on the pause screen
2024-01-21 12:02:30 +01:00
Henrik Rydgård
96dcf40c79
Throw in some sanity checks of usleep
2024-01-20 23:33:21 +01:00
Henrik Rydgård
3fd5190271
Add a comment, some additional cleanup
2024-01-16 09:07:09 +01:00
Henrik Rydgård
bd7019eb9d
Protect sceIoOpen against nullptr filenames
2024-01-15 12:02:58 +01:00
Henrik Rydgård
3ce843819e
Show a notification if a game exits with sceKernelExitGame. Mainly useful for homebrew.
2024-01-15 10:36:32 +01:00
Henrik Rydgård
3bd2b1c7a7
Merge pull request #18670 from Tatsh/ffmpeg
...
Fix compilation against newer ffmpeg versions
2024-01-14 14:16:36 +01:00
Andrew Udvare
402f9acb5e
Fix compilation with newer ffmpeg versions
2024-01-13 00:12:21 -05:00