mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-14 05:37:58 -05: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