From eb9d7d5c78dd9613b0492ab44f7723016cbb2b49 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sat, 10 May 2014 12:30:08 +0200 Subject: ao_coreaudio: print an error when channel mapping fails --- audio/out/ao_coreaudio.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'audio') 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) -- cgit v1.2.3