From d0e5e138e279f40f92b7d41d885695a206ec36c0 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 23 Oct 2021 07:51:06 -0700 Subject: Use a flag to indicate headphone-like output --- alc/backends/pipewire.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'alc/backends/pipewire.cpp') diff --git a/alc/backends/pipewire.cpp b/alc/backends/pipewire.cpp index 82b7a22f..5b172551 100644 --- a/alc/backends/pipewire.cpp +++ b/alc/backends/pipewire.cpp @@ -1185,7 +1185,7 @@ bool PipeWirePlayback::reset() /* If connecting to a specific device, update various device parameters to * match its format. */ - mDevice->IsHeadphones = false; + mDevice->Flags.reset(DirectEar); if(mTargetId != PwIdAny) { EventWatcherLockGuard _{gEventHandler}; @@ -1207,7 +1207,7 @@ bool PipeWirePlayback::reset() if(!mDevice->Flags.test(ChannelsRequest) && match->mChannels != InvalidChannelConfig) mDevice->FmtChans = match->mChannels; if(match->mChannels == DevFmtStereo && match->mIsHeadphones) - mDevice->IsHeadphones = true; + mDevice->Flags.set(DirectEar); } } /* Force planar 32-bit float output for playback. This is what PipeWire -- cgit v1.2.3