From b1087619444536f8d00f1fbd64fdb4cc8310c115 Mon Sep 17 00:00:00 2001 From: sletz Date: Tue, 5 Sep 2006 21:23:37 +0000 Subject: [PATCH] Fix bug with input ports git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@1222 0c269be4-1314-0410-8aa9-9f06e86f4224 --- macosx/JackCoreAudioDriver.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/macosx/JackCoreAudioDriver.cpp b/macosx/JackCoreAudioDriver.cpp index 4424ed0a..fb473a38 100644 --- a/macosx/JackCoreAudioDriver.cpp +++ b/macosx/JackCoreAudioDriver.cpp @@ -871,7 +871,7 @@ int JackCoreAudioDriver::Attach() // Input buffers do no change : prepare them only once for (int i = 0; i < fCaptureChannels; i++) { - fJackInputData->mBuffers[i].mData = GetOutputBuffer(i); + fJackInputData->mBuffers[i].mData = GetInputBuffer(i); } return 0; @@ -923,11 +923,11 @@ int JackCoreAudioDriver::SetBufferSize(jack_nframes_t nframes) fEngineControl->fBufferSize = nframes; fEngineControl->fPeriodUsecs = jack_time_t(1000000.f / fEngineControl->fSampleRate * fEngineControl->fBufferSize); // In microsec - // Prepare buffers + // Input buffers do no change : prepare them only once for (int i = 0; i < fCaptureChannels; i++) { fJackInputData->mBuffers[i].mNumberChannels = 1; fJackInputData->mBuffers[i].mDataByteSize = fEngineControl->fBufferSize * sizeof(float); - fJackInputData->mBuffers[i].mData = GetOutputBuffer(i); + fJackInputData->mBuffers[i].mData = GetInputBuffer(i); } return 0;