Commit b1087619 authored by sletz's avatar sletz
Browse files

Fix bug with input ports

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@1222 0c269be4-1314-0410-8aa9-9f06e86f4224
parent 8f7f8a2a
......@@ -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;
......
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