diff options
author | Chris Robinson <[email protected]> | 2016-09-21 15:16:09 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2016-09-21 15:16:09 -0700 |
commit | d89624b03c2622c7deb2104ddf9318b131de67ab (patch) | |
tree | d0e336291879a573c8fb92f741c71e1bedb48ba7 /Alc/backends/mmdevapi.c | |
parent | 4486043ae509f00a971e30f1da642f2351f1974d (diff) |
Recognize Headset formfactors as headphones
Diffstat (limited to 'Alc/backends/mmdevapi.c')
-rw-r--r-- | Alc/backends/mmdevapi.c | 4 |
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); |