From 7ba6e5fdba10c93b09a1f28dccf0923eee5ba4f3 Mon Sep 17 00:00:00 2001 From: ApfelTeeSaft <91074565+ApfelTeeSaft@users.noreply.github.com> Date: Tue, 7 Jul 2026 21:32:12 +0200 Subject: [PATCH] Revert accidental push of diagnosig logic. --- src/audio_core/hle/source.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/audio_core/hle/source.cpp b/src/audio_core/hle/source.cpp index 968552fce..018368704 100644 --- a/src/audio_core/hle/source.cpp +++ b/src/audio_core/hle/source.cpp @@ -436,17 +436,6 @@ bool Source::DequeueBuffer() { // Because our interpolation consumes samples instead of using an index, // let's just consume the samples up to the current sample number. - // Guard like the partial-embedded-buffer path in ParseConfig: a play_position - // beyond the decoded length would otherwise erase past the end (undefined - // behavior). Log when this triggers so affected titles can be identified. - if (state.current_sample_number > state.current_buffer.size()) { - LOG_WARNING(Audio_DSP, - "source_id={} buffer_id={} play_position={} exceeds decoded buffer " - "size={}; resetting to 0", - source_id, buf.buffer_id, state.current_sample_number, - state.current_buffer.size()); - state.current_sample_number = 0; - } state.current_buffer.erase( state.current_buffer.begin(), std::next(state.current_buffer.begin(), state.current_sample_number));