mirror of
https://github.com/mpv-player/mpv
synced 2025-02-16 20:27:23 +00:00
ao_coreaudio: log current format before setting new format
This commit is contained in:
parent
cee9aeaf6b
commit
ff778f6d68
@ -505,6 +505,8 @@ bool ca_change_physical_format_sync(struct ao *ao, AudioStreamID stream,
|
|||||||
err = CA_GET(stream, kAudioStreamPropertyPhysicalFormat, &prev_format);
|
err = CA_GET(stream, kAudioStreamPropertyPhysicalFormat, &prev_format);
|
||||||
CHECK_CA_ERROR("can't get current physical format");
|
CHECK_CA_ERROR("can't get current physical format");
|
||||||
|
|
||||||
|
ca_print_asbd(ao, "format in use before switching:", &prev_format);
|
||||||
|
|
||||||
/* Install the callback. */
|
/* Install the callback. */
|
||||||
AudioObjectPropertyAddress p_addr = {
|
AudioObjectPropertyAddress p_addr = {
|
||||||
.mSelector = kAudioStreamPropertyPhysicalFormat,
|
.mSelector = kAudioStreamPropertyPhysicalFormat,
|
||||||
|
Loading…
Reference in New Issue
Block a user