Skip to content

Commit

Permalink
audiounit_ios: move debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
tguillem authored and jbkempf committed Nov 5, 2022
1 parent 3d92b1c commit cac29a1
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions modules/audio_output/audiounit_ios.m
Original file line number Diff line number Diff line change
Expand Up @@ -347,12 +347,6 @@ - (void)handleSpatialCapabilityChange:(NSNotification *)notification
break;
}

msg_Dbg(p_aout, "Output on %s, channel count: %u, spatialAudioEnabled %i",
*pport_type == PORT_TYPE_HDMI ? "HDMI" :
*pport_type == PORT_TYPE_USB ? "USB" :
*pport_type == PORT_TYPE_HEADPHONES ? "Headphones" : "Default",
layout ? (unsigned) layout->mNumberChannelDescriptions : 2, p_sys->b_spatial_audio_supported);

*playout = layout;
return VLC_SUCCESS;
}
Expand Down Expand Up @@ -615,6 +609,13 @@ static int role2policy_cmp(const void *key, const void *val)
if (ret != VLC_SUCCESS)
goto error;

msg_Dbg(p_aout, "Output on %s, channel count: %ld, spatialAudioEnabled %i",
port_type == PORT_TYPE_HDMI ? "HDMI" :
port_type == PORT_TYPE_USB ? "USB" :
port_type == PORT_TYPE_HEADPHONES ? "Headphones" : "Default",
(long) [p_sys->avInstance outputNumberOfChannels],
p_sys->b_spatial_audio_supported);

p_aout->current_sink_info.headphones = port_type == PORT_TYPE_HEADPHONES;

p_sys->au_unit = au_NewOutputInstance(p_aout, kAudioUnitSubType_RemoteIO);
Expand Down

0 comments on commit cac29a1

Please sign in to comment.