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/dsound.cpp | |
parent | 0e93fc53f4cf5bdc749a23a46573d690b2f1c443 (diff) |
Use a flag to indicate headphone-like output
Diffstat (limited to 'alc/backends/dsound.cpp')
-rw-r--r-- | alc/backends/dsound.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/alc/backends/dsound.cpp b/alc/backends/dsound.cpp index 6513e8f3..acac4786 100644 --- a/alc/backends/dsound.cpp +++ b/alc/backends/dsound.cpp @@ -409,8 +409,7 @@ bool DSoundPlayback::reset() else ERR("Unknown system speaker config: 0x%lx\n", speakers); } - mDevice->IsHeadphones = mDevice->FmtChans == DevFmtStereo - && speakers == DSSPEAKER_HEADPHONE; + mDevice->Flags.set(DirectEar, (speakers == DSSPEAKER_HEADPHONE)); switch(mDevice->FmtChans) { |