From 656703e279bc88cd7dc81e30f333e4104b6687b2 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 5 May 2015 22:04:00 +0200 Subject: ao_coreaudio: log considered physical formats --- audio/out/ao_coreaudio.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'audio/out') 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; -- cgit v1.2.3