diff options
author | Kelebek1 <eeeedddccc@hotmail.co.uk> | 2022-12-16 17:01:35 +0100 |
---|---|---|
committer | Kelebek1 <eeeedddccc@hotmail.co.uk> | 2022-12-16 17:07:24 +0100 |
commit | 6a56f42f5d94e2be405a736a74b86ffe3ab1b37b (patch) | |
tree | f110ff43899da31442d31c219c36f2b8a20ef974 /src/audio_core/device/device_session.cpp | |
parent | Merge pull request #9431 from liamwhite/sixty-five-oh-two (diff) | |
download | yuzu-6a56f42f5d94e2be405a736a74b86ffe3ab1b37b.tar yuzu-6a56f42f5d94e2be405a736a74b86ffe3ab1b37b.tar.gz yuzu-6a56f42f5d94e2be405a736a74b86ffe3ab1b37b.tar.bz2 yuzu-6a56f42f5d94e2be405a736a74b86ffe3ab1b37b.tar.lz yuzu-6a56f42f5d94e2be405a736a74b86ffe3ab1b37b.tar.xz yuzu-6a56f42f5d94e2be405a736a74b86ffe3ab1b37b.tar.zst yuzu-6a56f42f5d94e2be405a736a74b86ffe3ab1b37b.zip |
Diffstat (limited to 'src/audio_core/device/device_session.cpp')
-rw-r--r-- | src/audio_core/device/device_session.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/audio_core/device/device_session.cpp b/src/audio_core/device/device_session.cpp index 995060414..5a327a606 100644 --- a/src/audio_core/device/device_session.cpp +++ b/src/audio_core/device/device_session.cpp @@ -73,6 +73,12 @@ void DeviceSession::Stop() { } } +void DeviceSession::ClearBuffers() { + if (stream) { + stream->ClearQueue(); + } +} + void DeviceSession::AppendBuffers(std::span<const AudioBuffer> buffers) const { for (const auto& buffer : buffers) { Sink::SinkBuffer new_buffer{ |