Set headphones when pulse reports using the headphones port

This commit is contained in:
Chris Robinson
2014-11-23 20:41:29 -08:00
parent 033cf3dca9
commit 2c533fdc36
+3
View File
@@ -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] = "";