Always report ALC_ANY_SOFT for output without contexts

Not required, but nicer to be consistent if it's not a meaningful value (e.g.
the actual device mode).
master
Chris Robinson 2022-04-17 05:27:40 -07:00
parent 5c0eabc526
commit ac4d4fc731
1 changed files with 3 additions and 0 deletions

View File

@ -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;