mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 05:51:27 +12:00
Workaround: Force audio provider
This hides the audio_provider box in the settings and forces the proper provider based on boot path. Stop-gap solution until we decided what to do with vsh settings.
This commit is contained in:
parent
d83fac4247
commit
2b325de680
3 changed files with 26 additions and 12 deletions
|
@ -21,6 +21,7 @@
|
|||
#include "Emu/Io/Null/null_music_handler.h"
|
||||
#include "Emu/Cell/Modules/cellAudio.h"
|
||||
#include "Emu/Cell/lv2/sys_rsxaudio.h"
|
||||
#include "Emu/Cell/lv2/sys_process.h"
|
||||
#include "Emu/RSX/Overlays/overlay_perf_metrics.h"
|
||||
#include "Emu/system_utils.hpp"
|
||||
#include "Emu/vfs_config.h"
|
||||
|
@ -629,6 +630,20 @@ void gui_application::OnEmuSettingsChange()
|
|||
}
|
||||
|
||||
rpcs3::utils::configure_logs();
|
||||
|
||||
if (!Emu.IsStopped())
|
||||
{
|
||||
// Force audio provider
|
||||
if (g_ps3_process_info.get_cellos_appname() == "vsh.self"sv)
|
||||
{
|
||||
g_cfg.audio.provider.set(audio_provider::rsxaudio);
|
||||
}
|
||||
else
|
||||
{
|
||||
g_cfg.audio.provider.set(audio_provider::cell_audio);
|
||||
}
|
||||
}
|
||||
|
||||
audio::configure_audio();
|
||||
audio::configure_rsxaudio();
|
||||
rsx::overlays::reset_performance_overlay();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue