aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2016-09-21 15:16:09 -0700
committerChris Robinson <[email protected]>2016-09-21 15:16:09 -0700
commitd89624b03c2622c7deb2104ddf9318b131de67ab (patch)
treed0e336291879a573c8fb92f741c71e1bedb48ba7 /Alc
parent4486043ae509f00a971e30f1da642f2351f1974d (diff)
Recognize Headset formfactors as headphones
Diffstat (limited to 'Alc')
-rw-r--r--Alc/backends/mmdevapi.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Alc/backends/mmdevapi.c b/Alc/backends/mmdevapi.c
index 31092db7..7cad93a9 100644
--- a/Alc/backends/mmdevapi.c
+++ b/Alc/backends/mmdevapi.c
@@ -1063,7 +1063,9 @@ static HRESULT ALCmmdevPlayback_resetProxy(ALCmmdevPlayback *self)
OutputType.Samples.wValidBitsPerSample = OutputType.Format.wBitsPerSample;
}
get_device_formfactor(self->mmdev, &formfactor);
- device->IsHeadphones = (device->FmtChans == DevFmtStereo && formfactor == Headphones);
+ device->IsHeadphones = (device->FmtChans == DevFmtStereo &&
+ (formfactor == Headphones || formfactor == Headset)
+ );
SetDefaultWFXChannelOrder(device);