Commit 37a97147 authored by sletz's avatar sletz
Browse files

Fix in JackCoreAudioDriver::Read when there is no inputs.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4257 0c269be4-1314-0410-8aa9-9f06e86f4224
parent 3b80fc10
......@@ -34,6 +34,10 @@ Valerio Pilo
Jackdmp changes log
---------------------------
2011-04-03 Stephane Letz <letz@grame.fr>
* Fix in JackCoreAudioDriver::Read when there is no inputs.
2011-04-02 Stephane Letz <letz@grame.fr>
* Netdriver can now ask for in/out values from the master (in progress).
......
......@@ -216,8 +216,11 @@ OSStatus JackCoreAudioDriver::Render(void *inRefCon,
int JackCoreAudioDriver::Read()
{
OSStatus err = AudioUnitRender(fAUHAL, fActionFags, fCurrentTime, 1, fEngineControl->fBufferSize, fJackInputData);
return (err == noErr) ? 0 : -1;
if (fCaptureChannels > 0) { // Calling AudioUnitRender with no input returns a '????' error (callback setting issue ??), so hack to avoid it here...
return (AudioUnitRender(fAUHAL, fActionFags, fCurrentTime, 1, fEngineControl->fBufferSize, fJackInputData) == noErr) ? 0 : -1;
} else {
return 0;
}
}
int JackCoreAudioDriver::Write()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment