ao_coreaudio: log current format before setting new format

This commit is contained in:
wm4 2015-10-21 18:53:50 +02:00
parent cee9aeaf6b
commit ff778f6d68
1 changed files with 2 additions and 0 deletions

View File

@ -505,6 +505,8 @@ bool ca_change_physical_format_sync(struct ao *ao, AudioStreamID stream,
err = CA_GET(stream, kAudioStreamPropertyPhysicalFormat, &prev_format);
CHECK_CA_ERROR("can't get current physical format");
ca_print_asbd(ao, "format in use before switching:", &prev_format);
/* Install the callback. */
AudioObjectPropertyAddress p_addr = {
.mSelector = kAudioStreamPropertyPhysicalFormat,