summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2024-02-23 02:20:31 +0100
committerLiam <byteslice@airmail.cc>2024-02-23 02:20:31 +0100
commit2c00599a539765469c41401adbd038e75228bc3b (patch)
tree5d760bacd649da75ec03a05dfa088710272a3996
parentaudio: add NotifyHeadphoneVolumeWarningDisplayedEvent (diff)
downloadyuzu-2c00599a539765469c41401adbd038e75228bc3b.tar
yuzu-2c00599a539765469c41401adbd038e75228bc3b.tar.gz
yuzu-2c00599a539765469c41401adbd038e75228bc3b.tar.bz2
yuzu-2c00599a539765469c41401adbd038e75228bc3b.tar.lz
yuzu-2c00599a539765469c41401adbd038e75228bc3b.tar.xz
yuzu-2c00599a539765469c41401adbd038e75228bc3b.tar.zst
yuzu-2c00599a539765469c41401adbd038e75228bc3b.zip
-rw-r--r--src/audio_core/device/audio_buffers.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/audio_core/device/audio_buffers.h b/src/audio_core/device/audio_buffers.h
index 25da4c8a2..9e84a9c05 100644
--- a/src/audio_core/device/audio_buffers.h
+++ b/src/audio_core/device/audio_buffers.h
@@ -146,11 +146,15 @@ public:
break;
}
+ if (released < tags.size()) {
+ tags[released] = tag;
+ }
+
+ released++;
+
if (released >= tags.size()) {
break;
}
-
- tags[released++] = tag;
}
return released;