From 26c8c50c2605e377f74d7a73bae3bbbf4f7bad61 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 26 Apr 2021 20:25:24 -0700 Subject: Partially implement an extension to hold sources on disconnect Rather than stopping voices/sources when the device becomes disconnected, the context can be set to leave them alone. As a consequence, their state will remain as playing and they'll keep their last known sample offset indefinately. For applications mindful of this behavior, it will allow resetting or reopening the device to reconnect and automatically resume where it left off. --- alc/backends/oboe.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'alc/backends/oboe.cpp') diff --git a/alc/backends/oboe.cpp b/alc/backends/oboe.cpp index d82db834..28ade849 100644 --- a/alc/backends/oboe.cpp +++ b/alc/backends/oboe.cpp @@ -5,8 +5,10 @@ #include #include +#include -#include "alu.h" +#include "alnumeric.h" +#include "core/device.h" #include "core/logging.h" #include "oboe/Oboe.h" -- cgit v1.2.3