aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--alc/device.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/alc/device.cpp b/alc/device.cpp
index 3a9b7380..e06c0d74 100644
--- a/alc/device.cpp
+++ b/alc/device.cpp
@@ -68,6 +68,9 @@ void ALCdevice::enumerateHrtfs()
auto ALCdevice::getOutputMode1() const noexcept -> OutputMode1
{
+ if(mContexts.load(std::memory_order_relaxed)->empty())
+ return OutputMode1::Any;
+
switch(FmtChans)
{
case DevFmtMono: return OutputMode1::Mono;