mirror of
https://github.com/mpv-player/mpv
synced 2024-12-28 10:02:17 +00:00
ao_coreaudio: log considered physical formats
This commit is contained in:
parent
86d65c80e1
commit
656703e279
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user