Quote:
Originally Posted by TheMaartian
44.1 KHz does NOT equal 44100 Hz. It equals 44.1 x 1024, or 45,148 Hz. Since some bits are protocol/error detection, the actual data throughput will be a little lower. All seems OK to me.
|
You confuse kilobits with kilohertz...
1kb=1024b and 1kHz=1000Hz
Maybe that's what the sound card packages ask for.
What is the mystery of transforming these blocks of data from Host to sound card. Given that the sound card has its own settings: samplerate, sampleblock etc ... ?
In the example cames with IPlug I find a code which don't understand
Code:
for (int i=0; i<nFrames; i++)
{
gBufIndex %= gSigVS;
if (gBufIndex == 0)
{
double* inputs[2] = {inputBufferD + i, inputBufferD + inRightOffset + i};
double* outputs[2] = {outputBufferD + i, outputBufferD + nFrames + i};
gPluginInstance->LockMutexAndProcessDoubleReplacing(inputs, outputs, gSigVS);
}
// fade in
if (gFadeMult < 1.)
{
gFadeMult += (1. / nFrames);
}
outputBufferD[i] *= gFadeMult;
outputBufferD[i + nFrames] *= gFadeMult;
outputBufferD[i] *= APP_MULT;
outputBufferD[i + nFrames] *= APP_MULT;
gBufIndex++;
}
What does that gSigVS mean, shouldn't it be sampleblock or nFrames value?