summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Alc/backends/pulseaudio.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/Alc/backends/pulseaudio.c b/Alc/backends/pulseaudio.c
index 861bb01e..dcb1a508 100644
--- a/Alc/backends/pulseaudio.c
+++ b/Alc/backends/pulseaudio.c
@@ -706,8 +706,11 @@ static void ALCpulsePlayback_sinkInfoCallback(pa_context *UNUSED(context), const
}
}
- device->IsHeadphones = (device->FmtChans == DevFmtStereo && info->active_port &&
- strcmp(info->active_port->name, "analog-output-headphones") == 0);
+ if(info->active_port)
+ TRACE("Active port: %s (%s)\n", info->active_port->name, info->active_port->description);
+ device->IsHeadphones = (info->active_port &&
+ strcmp(info->active_port->name, "analog-output-headphones") == 0 &&
+ device->FmtChans == DevFmtStereo);
if(!chanmaps[i].str)
{