add some AU debug message

(if this is encountered, a crash is likely and error log will be useless)
This commit is contained in:
Robin Gareus
2016-04-02 23:07:40 +02:00
parent 4cdccd853f
commit c019202dd2

View File

@@ -1452,6 +1452,7 @@ AUPlugin::render_callback(AudioUnitRenderActionFlags*,
// name(), inNumberFrames, ioData->mNumberBuffers));
if (input_maxbuf == 0) {
DEBUG_TRACE (DEBUG::AudioUnits, "AUPlugin: render callback called illegally!");
error << _("AUPlugin: render callback called illegally!") << endmsg;
return kAudioUnitErr_CannotDoInCurrentContext;
}