From 1f356e2883d5cfff30aa6cdc66f11077116de6b5 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 9 Sep 2020 17:23:02 -0600 Subject: [PATCH] CoreAudioSource: print more information in the case of errors --- libs/ardour/coreaudiosource.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/ardour/coreaudiosource.cc b/libs/ardour/coreaudiosource.cc index ee1e6df702..e2ad118151 100644 --- a/libs/ardour/coreaudiosource.cc +++ b/libs/ardour/coreaudiosource.cc @@ -123,7 +123,7 @@ CoreAudioSource::safe_read (Sample* dst, samplepos_t start, samplecnt_t cnt, Aud try { af.Seek (start+nread); } catch (CAXException& cax) { - error << string_compose("CoreAudioSource: %1 to %2 (%3)", cax.mOperation, start+nread, _name.val().substr (1)) << endmsg; + error << string_compose("CoreAudioSource: %1 to %2 [%3] (%3)", cax.mOperation, start+nread, cax.mError, _name.val().substr (1)) << endmsg; return -1; } @@ -135,7 +135,7 @@ CoreAudioSource::safe_read (Sample* dst, samplepos_t start, samplecnt_t cnt, Aud try { af.Read (new_cnt, &abl); } catch (CAXException& cax) { - error << string_compose("CoreAudioSource: %1 (%2)", cax.mOperation, _name); + error << string_compose("CoreAudioSource: %1 [%2] (%3)", cax.mOperation, cax.mError, _name); return -1; }