//--------------------------------------------------------------------------------------------- void KXAsio::bufferSwitch () { if (started && callbacks) { getSamplePosition (&asioTime.timeInfo.samplePosition, &asioTime.timeInfo.systemTime); if (timeInfoMode) bufferSwitchX (); else callbacks->bufferSwitch (toggle, ASIOTrue); toggle = 1-toggle; samplePosition += blockFrames; } }
//--------------------------------------------------------------------------------------------- void AsioSample::bufferSwitch () { if (started && callbacks) { getNanoSeconds(&theSystemTime); // latch system time input(); output(); samplePosition += blockFrames; if (timeInfoMode) bufferSwitchX (); else callbacks->bufferSwitch (toggle, ASIOFalse); toggle = toggle ? 0 : 1; } }