summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-05-05 22:04:00 +0200
committerwm4 <wm4@nowhere>2015-05-05 22:09:44 +0200
commit656703e279bc88cd7dc81e30f333e4104b6687b2 (patch)
tree1d4744d519bd47cc213d160919890bfd64e9bf0e
parent86d65c80e14f9527abb587dbf931ad253a05f97e (diff)
downloadmpv-656703e279bc88cd7dc81e30f333e4104b6687b2.tar.bz2
mpv-656703e279bc88cd7dc81e30f333e4104b6687b2.tar.xz
ao_coreaudio: log considered physical formats
-rw-r--r--audio/out/ao_coreaudio.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/audio/out/ao_coreaudio.c b/audio/out/ao_coreaudio.c
index 4849c4e160..9bb52f47a7 100644
--- a/audio/out/ao_coreaudio.c
+++ b/audio/out/ao_coreaudio.c
@@ -203,11 +203,15 @@ static void init_physical_format(struct ao *ao)
if (!CHECK_CA_WARN("could not get number of stream formats"))
continue; // try next one
+ MP_VERBOSE(ao, "Looking at formats in substream %d...\n", i);
+
AudioStreamBasicDescription best_asbd = {0};
for (int j = 0; j < n_formats; j++) {
AudioStreamBasicDescription *stream_asbd = &formats[j].mFormat;
+ ca_print_asbd(ao, "- ", stream_asbd);
+
if (!best_asbd.mFormatID || ca_asbd_is_better(&asbd, &best_asbd,
stream_asbd))
best_asbd = *stream_asbd;