Implemented Citra Enhanced's realtime audio option

Co-authored-by: Gamer64ytb <76565986+Gamer64ytb@users.noreply.github.com>
This commit is contained in:
OpenSauce04
2024-05-16 12:33:00 +01:00
parent feb033425c
commit c07b23b1d0
17 changed files with 61 additions and 1 deletions

View File

@@ -123,6 +123,7 @@ void LogSettings() {
log_setting("Audio_InputType", values.input_type.GetValue());
log_setting("Audio_InputDevice", values.input_device.GetValue());
log_setting("Audio_EnableAudioStretching", values.enable_audio_stretching.GetValue());
log_setting("Audio_EnableRealtime", values.enable_realtime_audio.GetValue());
using namespace Service::CAM;
log_setting("Camera_OuterRightName", values.camera_name[OuterRightCamera]);
log_setting("Camera_OuterRightConfig", values.camera_config[OuterRightCamera]);
@@ -174,6 +175,7 @@ void RestoreGlobalState(bool is_powered_on) {
// Audio
values.audio_emulation.SetGlobal(true);
values.enable_audio_stretching.SetGlobal(true);
values.enable_realtime_audio.SetGlobal(true);
values.volume.SetGlobal(true);
// Core

View File

@@ -526,6 +526,7 @@ struct Values {
bool audio_muted;
SwitchableSetting<AudioEmulation> audio_emulation{AudioEmulation::HLE, "audio_emulation"};
SwitchableSetting<bool> enable_audio_stretching{true, "enable_audio_stretching"};
SwitchableSetting<bool> enable_realtime_audio{false, "enable_realtime_audio"};
SwitchableSetting<float, true> volume{1.f, 0.f, 1.f, "volume"};
Setting<AudioCore::SinkType> output_type{AudioCore::SinkType::Auto, "output_type"};
Setting<std::string> output_device{"auto", "output_device"};