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
parent
5c0eabc526
commit
ac4d4fc731
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue