mirror of
https://github.com/yuzu-emu/yuzu-android
synced 2025-08-16 13:32:07 -07:00
Signal buffer event on audio in/out system stop, and force remove all registered audio buffers
This commit is contained in:
@@ -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{
|
||||
|
Reference in New Issue
Block a user