Commit Graph
730 Commits
Author SHA1 Message Date
Henrik Rydgård e00ef04792 Granular queue: Use the current FPS to get an estimate for how long the maximum queue size should be. 2025-08-22 21:21:20 +02:00
Henrik Rydgård 07ad5ff372 Add more measurements to the granular mixer queue 2025-08-22 21:21:20 +02:00
Henrik Rydgård 8a76ac74fc Granule queue: Move masking to access instead of increment 2025-08-22 21:21:20 +02:00
Henrik Rydgård 5b0d8c06c6 Add debug UI for granule mixer 2025-08-22 21:21:19 +02:00
Henrik Rydgård a1d0f405b1 Remove quantization error thingy. Other cleanup 2025-08-22 21:21:19 +02:00
Henrik Rydgård db24efcfa4 Remove the inner class, since we're only working with a single stereo stream. 2025-08-22 21:21:19 +02:00
Henrik Rydgård 878975ad80 Rework granule mixer code style a little, optimize. 2025-08-22 21:21:19 +02:00
Henrik Rydgård 0fa7349f5a Integrate Dolphin's granule based audio resampler.
Removed parts of it that were not relevant.

Working, it seems. Not sure about the buffer size thing.

Not defaulting it for now

See #20146 and https://github.com/dolphin-emu/dolphin/pull/13352

..
2025-08-22 21:21:19 +02:00
Henrik Rydgård 0502d79c99 Remove the return value from NativeMix, correct mixing with other channel numbers than 2 2025-06-18 23:48:00 +02:00
Henrik Rydgård f595e83a44 Add computed buffer latency in ms to StereoResampler stats 2025-06-18 11:39:14 +02:00
Henrik Rydgård cc3fbb22e4 Change some stat arrays from double to float (to save mem bandwidth) 2025-06-18 11:00:27 +02:00
Henrik Rydgård 702c84e019 Code style fix in StereoResampler 2025-06-18 11:00:03 +02:00
Henrik Rydgård f537356bd2 Fix bug when setting reverb volume to 0 2025-06-12 11:39:46 +02:00
Henrik Rydgård d00f8f9401 Display: Don't clear display callback listeners when starting a new exec.
Fixes https://github.com/RetroAchievements/RAIntegration/issues/1186
2025-06-07 17:43:18 +02:00
Milan Nikolic 1c6a420cb4 Fix building without ffmpeg 2025-05-26 11:40:08 +02:00
Henrik Rydgård 1ec9ba509e Small refactor of vblank callbacks 2025-05-13 12:13:15 +02:00
Henrik Rydgård 2fde87b074 Revert some const changes
Fixes #20307
2025-05-01 22:57:04 +02:00
Henrik Rydgård dbe6ec80a0 Fix some bad "for (auto x : y)" usage 2025-04-29 16:46:14 +02:00
Henrik Rydgård 0f18f054ab Make the frame-time budget for uploading replacement textures take framerate into account 2025-04-22 20:19:43 +02:00
Henrik Rydgård 6fe537df55 Revert to using FFMPEG as decoding backend for sceMp3 again, instead of minimp3. 2025-04-14 22:38:25 +02:00
Henrik Rydgård 52a7709fb5 Log cleanup. Fix very minor memory leak 2025-04-14 22:38:22 +02:00
Henrik Rydgård 3cd1f2f832 sceAudioCodec: Fix AT3 and AAC playback (possibly limited to certain bitrates) but fixes Kosmodrones 2025-04-13 15:48:11 +02:00
Henrik Rydgård 200edfaa96 Add a developer setting to force using FFMPEG for audio decoding. 2025-04-12 11:35:55 +02:00
Henrik Rydgård f7ff2e2d20 Remove redundant constants 2025-04-12 11:35:55 +02:00
Henrik Rydgård 3c4566717c Add muting flag to sceSasAudio as well. 2025-04-12 11:35:55 +02:00
Henrik Rydgård f9cc797328 Fix MP3 mono playback 2025-04-11 13:12:28 +02:00
Henrik Rydgård b27a022e7c Remove two states from the CoreState enum. 2025-04-05 09:18:56 +02:00
Henrik Rydgård 58efe00b74 Remove redundant coreState check in asyncIOManager. 2025-04-05 09:18:56 +02:00
Henrik Rydgård b24ce4bd14 Simplifications 2025-04-05 09:18:56 +02:00
Henrik Rydgård 29ad21effb Part 3: Merge ThreadEventQueue into AsyncIOManager 2025-04-05 09:18:56 +02:00
Henrik Rydgård 3f6e9e861c Remove the templating 2025-04-05 09:18:56 +02:00
Henrik Rydgård 9b1e9da18a Simplify AsyncIO part 1: Remove ThreadEventQueue.h 2025-04-05 09:18:56 +02:00
Henrik Rydgård 651a972019 More sceAudioCodec implementation work. Atrac3+ partially works now. 2025-04-02 17:26:59 +02:00
Henrik Rydgård c418513fa5 Fix bad check, add some comments
And remove unneded initial text.
2025-03-25 22:01:33 +01:00
Henrik Rydgård 1bd5cffa1d Initial work on re-implementing atrac-through-sas 2025-03-25 22:01:30 +01:00
Henrik Rydgård 4b123a2e09 Move the sceSas error codes into the big enum 2025-03-25 12:04:33 +01:00
Henrik Rydgård 5fcf0c6276 Swap the Cancel and No functions in the assert dialog. Plus a function rename and some safety checks. 2025-03-25 00:01:14 +01:00
Henrik Rydgård ec169e9fa9 Sol Trigger fix 2025-03-19 11:41:13 +01:00
Henrik Rydgård da2b3fdd13 Warning fixes. Don't clamp readsize to reported file size. 2025-03-19 10:42:32 +01: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 34308a326c Add basic sceSas state viewer to debugger 2025-02-19 10:50:32 -06:00
Henrik Rydgård 62e01d37a5 Upgrade reverb volume to the new format 2025-02-12 10:09:52 -06:00
Henrik Rydgård cf90b24431 Add UI volume setting (affecting navigation sounds and preview audio). Convert alt speed volume into a 100-step percentage. 2025-02-11 17:42:09 -06:00
Henrik Rydgård 9b923b72c1 Refactor audio output, preparing for better volume control 2025-02-11 16:43:29 -06:00
Henrik Rydgård 25bedc44b8 Switch from shift to multiplier for volume in StereoResampler 2025-02-11 15:55:39 -06:00
oltolm 9566065455 make compile on mingw-w64 2025-01-11 01:25:27 +01:00
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