mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-21 13:25:45 +00:00
Signal buffer event on audio in/out system stop, and force remove all registered audio buffers
This commit is contained in:
parent
016590e25d
commit
501ea58598
5 changed files with 26 additions and 7 deletions
|
@ -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{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue