aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-11-24 12:45:51 -0800
committerChris Robinson <[email protected]>2014-11-24 12:45:51 -0800
commitfc00c1c00998990b269653728fe745f883eed15b (patch)
tree26f3826911b4b6151ec31b1eb2cfd522dbfc9bcc
parentd6ebf5d1b6450c53b6ad781d31f54f2e608729ca (diff)
Trace PulseAudio's active port
-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)
{