shadPS4/src/audio_core
Vladislav Mikhalin 0d6e8e227a Fixed some sound and threading issues.
Details:
* Switched SDL audio mutex to RW lock. This fixes games that continiously call SetVolume in a different thread (like Ghostbusters)
* Added contition to buffer audio packets independent of video packets. This fixes choppy audio across many games.
* Increased the number of audio frame buffers from 2 to 4. Just in case.
* Migrated to std::jthread and std::mutex from pthreads.
* Fixed a race condition with joins on avplayer close that caused a crash.
2024-08-15 22:00:51 +03:00
..
sdl_audio.cpp Fixed some sound and threading issues. 2024-08-15 22:00:51 +03:00
sdl_audio.h Fixed some sound and threading issues. 2024-08-15 22:00:51 +03:00