Commit Graph

79 Commits

Author SHA1 Message Date
sum2012 e877b81c77 Add logging of Additional chunk data
Easy to compare JPCSP emulator log. Debugging in #19994
2025-02-21 22:11:46 +08:00
Henrik Rydgård 4ea7f46f81 Atrac3+: Try to work around Code Lyoko issue
Now we don't generate an error code when the channel configuration doesn't match the packets.

See the code comment for what I've been able to figure out so far.

See issue #19994
2025-02-19 12:46:25 -06:00
Henrik Rydgård 28b2c7f540 HLE log rename part 1: Remove duplicate log functions. Return type should be determined by metadata. 2025-01-29 09:45:39 +01: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
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 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 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 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 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 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