1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-04 22:20:22 +00:00

ao_coreaudio: print an error when channel mapping fails

This commit is contained in:
Stefano Pigozzi 2014-05-10 12:30:08 +02:00
parent b46ffaec7c
commit eb9d7d5c78

View File

@ -317,8 +317,12 @@ static int init(struct ao *ao)
// bitmap from the hardware, default to waveext...
mp_chmap_sel_add_waveext(&chmap_sel);
if (!ao_chmap_sel_adjust(ao, &chmap_sel, &ao->channels))
if (!ao_chmap_sel_adjust(ao, &chmap_sel, &ao->channels)) {
MP_ERR(ao, "could not select a suitable channel map among the "
"hardware supported ones. Make sure to configure your "
"output device correctly in 'Audio MIDI Setup.app'\n");
goto coreaudio_error;
}
} // closes if (!supports_digital)