diff options
author | wm4 <wm4@nowhere> | 2015-04-29 22:39:58 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-04-29 23:07:36 +0200 |
commit | 34a5229b231f15c95876fed472bd1edc5283db31 (patch) | |
tree | cbdc7c94b7394ef2af359d5f27fa0919613af78a /audio | |
parent | 32b835c03b4dc98a0344d171adef36c7562f1e7b (diff) | |
download | mpv-34a5229b231f15c95876fed472bd1edc5283db31.tar.bz2 mpv-34a5229b231f15c95876fed472bd1edc5283db31.tar.xz |
ao_coreaudio_utils: log mp format with CoreAudio format description
As a consequence, it also logs whether mpv can a this format at all.
Diffstat (limited to 'audio')
-rw-r--r-- | audio/out/ao_coreaudio_utils.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/audio/out/ao_coreaudio_utils.c b/audio/out/ao_coreaudio_utils.c index 85437c0b55..21ffbf0dc8 100644 --- a/audio/out/ao_coreaudio_utils.c +++ b/audio/out/ao_coreaudio_utils.c @@ -247,12 +247,13 @@ void ca_print_asbd(struct ao *ao, const char *description, { uint32_t flags = asbd->mFormatFlags; char *format = fourcc_repr(NULL, asbd->mFormatID); + int mpfmt = ca_asbd_to_mp_format(asbd); MP_VERBOSE(ao, "%s %7.1fHz %" PRIu32 "bit %s " "[%" PRIu32 "][%" PRIu32 "bpp][%" PRIu32 "fbp]" "[%" PRIu32 "bpf][%" PRIu32 "ch] " - "%s %s %s%s%s%s\n", + "%s %s %s%s%s%s (%s)\n", description, asbd->mSampleRate, asbd->mBitsPerChannel, format, asbd->mFormatFlags, asbd->mBytesPerPacket, asbd->mFramesPerPacket, asbd->mBytesPerFrame, asbd->mChannelsPerFrame, @@ -261,7 +262,8 @@ void ca_print_asbd(struct ao *ao, const char *description, (flags & kAudioFormatFlagIsSignedInteger) ? "S" : "U", (flags & kAudioFormatFlagIsPacked) ? " packed" : "", (flags & kAudioFormatFlagIsAlignedHigh) ? " aligned" : "", - (flags & kAudioFormatFlagIsNonInterleaved) ? " P" : ""); + (flags & kAudioFormatFlagIsNonInterleaved) ? " P" : "", + mpfmt ? af_fmt_to_str(mpfmt) : "unusable"); talloc_free(format); } |