//---------------------------------------------------------------------------------------------
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;
    }
}
Exemple #2
0
//---------------------------------------------------------------------------------------------
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;
	}
}