audio_core/hle/source.cpp: clear config.play_position_dirty regardless of config.play_position value. (#7349)

Cosmetic-ish change so we dont incorrectly log about unhandled dirty flags
This commit is contained in:
SachinVin 2024-01-15 01:57:28 +05:30 committed by GitHub
parent cca8c08a9a
commit 9c84721d84
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -161,12 +161,12 @@ void Source::ParseConfig(SourceConfiguration::Configuration& config,
static_cast<std::size_t>(state.mono_or_stereo));
}
u32_dsp play_position = {};
if (config.play_position_dirty && config.play_position != 0) {
config.play_position_dirty.Assign(0);
play_position = config.play_position;
// play_position applies only to the embedded buffer, and defaults to 0 w/o a dirty bit
// This will be the starting sample for the first time the buffer is played.
u32_dsp play_position = {};
if (config.play_position_dirty) {
config.play_position_dirty.Assign(0);
play_position = config.play_position;
}
// TODO(xperia64): Is this in the correct spot in terms of the bit handling order?