diff options
author | Chris Robinson <[email protected]> | 2021-10-23 07:51:06 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2021-10-23 07:51:06 -0700 |
commit | d0e5e138e279f40f92b7d41d885695a206ec36c0 (patch) | |
tree | 5edc0e4bd84ad92d6722cb140d347860180a6ff0 /alc/backends/pipewire.cpp | |
parent | 0e93fc53f4cf5bdc749a23a46573d690b2f1c443 (diff) |
Use a flag to indicate headphone-like output
Diffstat (limited to 'alc/backends/pipewire.cpp')
-rw-r--r-- | alc/backends/pipewire.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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 |