diff --git a/src/audio_core/hle/source.cpp b/src/audio_core/hle/source.cpp index d2ef898b6a..4b232c9fb9 100644 --- a/src/audio_core/hle/source.cpp +++ b/src/audio_core/hle/source.cpp @@ -119,8 +119,8 @@ void Source::ParseConfig(SourceConfiguration::Configuration& config, if (config.filters_enabled_dirty) { config.filters_enabled_dirty.Assign(0); - state.filters.Enable(config.simple_filter_enabled.ToBool(), - config.biquad_filter_enabled.ToBool()); + state.filters.Enable(static_cast(config.simple_filter_enabled), + static_cast(config.biquad_filter_enabled)); LOG_TRACE(Audio_DSP, "source_id={} enable_simple={} enable_biquad={}", source_id, config.simple_filter_enabled.Value(), config.biquad_filter_enabled.Value()); } @@ -173,8 +173,8 @@ void Source::ParseConfig(SourceConfiguration::Configuration& config, config.length, static_cast(config.adpcm_ps), {config.adpcm_yn[0], config.adpcm_yn[1]}, - config.adpcm_dirty.ToBool(), - config.is_looping.ToBool(), + static_cast(config.adpcm_dirty), + static_cast(config.is_looping), config.buffer_id, state.mono_or_stereo, state.format, diff --git a/src/video_core/regs_texturing.h b/src/video_core/regs_texturing.h index 7f4ac3ccf6..511838759a 100644 --- a/src/video_core/regs_texturing.h +++ b/src/video_core/regs_texturing.h @@ -181,9 +181,9 @@ struct TexturingRegs { }; const std::array GetTextures() const { return {{ - {main_config.texture0_enable.ToBool(), texture0, texture0_format}, - {main_config.texture1_enable.ToBool(), texture1, texture1_format}, - {main_config.texture2_enable.ToBool(), texture2, texture2_format}, + {static_cast(main_config.texture0_enable), texture0, texture0_format}, + {static_cast(main_config.texture1_enable), texture1, texture1_format}, + {static_cast(main_config.texture2_enable), texture2, texture2_format}, }}; }