diff options
author | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2014-05-10 12:30:08 +0200 |
---|---|---|
committer | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2014-05-10 14:07:45 +0200 |
commit | eb9d7d5c78dd9613b0492ab44f7723016cbb2b49 (patch) | |
tree | 52c06013fd3562b501378af80ad2806efece3a99 /audio/out | |
parent | b46ffaec7cf105e37263d1e32b396c3455e64f06 (diff) | |
download | mpv-eb9d7d5c78dd9613b0492ab44f7723016cbb2b49.tar.bz2 mpv-eb9d7d5c78dd9613b0492ab44f7723016cbb2b49.tar.xz |
ao_coreaudio: print an error when channel mapping fails
Diffstat (limited to 'audio/out')
-rw-r--r-- | audio/out/ao_coreaudio.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/audio/out/ao_coreaudio.c b/audio/out/ao_coreaudio.c index 9407d5f562..f37a31aed6 100644 --- a/audio/out/ao_coreaudio.c +++ b/audio/out/ao_coreaudio.c @@ -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) |