Add 'Use Alternative Audio Hook' option, enable by default
This commit is contained in:
parent
376744746a
commit
afb6bc73c7
6 changed files with 55 additions and 8 deletions
|
|
@ -697,6 +697,12 @@ void LibretroHostInterface::retro_run_frame()
|
|||
UpdateGeometry();
|
||||
|
||||
m_display->Render();
|
||||
|
||||
if (g_settings.audio_fast_hook)
|
||||
{
|
||||
auto* const audio_stream = dynamic_cast<LibretroAudioStream*>(m_audio_stream.get());
|
||||
audio_stream->UploadToFrontend();
|
||||
}
|
||||
}
|
||||
|
||||
unsigned LibretroHostInterface::retro_get_region()
|
||||
|
|
@ -1153,6 +1159,12 @@ void LibretroHostInterface::UpdateSettings()
|
|||
|
||||
g_settings.gpu_use_software_renderer_for_readbacks = old_settings.gpu_use_software_renderer_for_readbacks;
|
||||
}
|
||||
|
||||
if (g_settings.audio_fast_hook != old_settings.audio_fast_hook)
|
||||
{
|
||||
ReportFormattedMessage("Changing audio hook will apply on core reload.");
|
||||
g_settings.audio_fast_hook = old_settings.audio_fast_hook;
|
||||
}
|
||||
}
|
||||
|
||||
CheckForSettingsChanges(old_settings);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue