mirror of
https://github.com/vale981/openAV-Luppp
synced 2025-03-05 09:01:39 -05:00
-Debugging
This commit is contained in:
parent
60decf79ba
commit
f48174f7f3
1 changed files with 11 additions and 4 deletions
|
@ -139,11 +139,11 @@ void TimeManager::process(Buffers* buffers)
|
||||||
//buffers->transportPosition->beat_type = 4;
|
//buffers->transportPosition->beat_type = 4;
|
||||||
|
|
||||||
|
|
||||||
beatFrameCountdown -= buffers->nframes;
|
beatFrameCountdown = beatFrameCountdown - buffers->nframes;
|
||||||
//printf("beatFCd %i, %i\n", beatFrameCountdown, buffers->nframes );
|
//printf("beatFCd %i, %i\n", beatFrameCountdown, buffers->nframes );
|
||||||
|
|
||||||
|
|
||||||
if ( beatFrameCountdown < int(buffers->nframes) )
|
if ( beatFrameCountdown < long(buffers->nframes) )
|
||||||
{
|
{
|
||||||
beatCounter++;
|
beatCounter++;
|
||||||
|
|
||||||
|
@ -173,15 +173,22 @@ void TimeManager::process(Buffers* buffers)
|
||||||
int remaining = buffers->nframes - beatFrameCountdown;
|
int remaining = buffers->nframes - beatFrameCountdown;
|
||||||
if ( remaining > 0 )
|
if ( remaining > 0 )
|
||||||
{
|
{
|
||||||
/*
|
|
||||||
char buffer [50];
|
char buffer [50];
|
||||||
sprintf (buffer, "remaining %i", remaining );
|
sprintf (buffer, "remaining %i", remaining );
|
||||||
EventGuiPrint e2( buffer );
|
EventGuiPrint e2( buffer );
|
||||||
writeToGuiRingbuffer( &e2 );
|
writeToGuiRingbuffer( &e2 );
|
||||||
*/
|
|
||||||
|
|
||||||
jack->processFrames( remaining );
|
jack->processFrames( remaining );
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
char buffer [50];
|
||||||
|
sprintf (buffer, "weird negative remaining!! %i", remaining );
|
||||||
|
EventGuiPrint e2( buffer );
|
||||||
|
writeToGuiRingbuffer( &e2 );
|
||||||
|
}
|
||||||
|
|
||||||
// write new beat to UI (bar info currently not used)
|
// write new beat to UI (bar info currently not used)
|
||||||
EventTimeBarBeat e( 0, beatCounter );
|
EventTimeBarBeat e( 0, beatCounter );
|
||||||
writeToGuiRingbuffer( &e );
|
writeToGuiRingbuffer( &e );
|
||||||
|
|
Loading…
Add table
Reference in a new issue