aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends/pulseaudio.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/backends/pulseaudio.c')
-rw-r--r--Alc/backends/pulseaudio.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Alc/backends/pulseaudio.c b/Alc/backends/pulseaudio.c
index 0bb38cd6..861bb01e 100644
--- a/Alc/backends/pulseaudio.c
+++ b/Alc/backends/pulseaudio.c
@@ -706,6 +706,9 @@ 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(!chanmaps[i].str)
{
char chanmap_str[PA_CHANNEL_MAP_SNPRINT_MAX] = "";