add some buffer debug output

main
Georg Krause 2018-08-08 15:12:33 +02:00
parent c91d593818
commit b03a660523
3 changed files with 7 additions and 2 deletions

View File

@ -87,7 +87,7 @@ void AudioBuffer::setAudioFrames(long af)
{
audioFrames = af;
#ifdef DEBUG_BUFFER
cout << "AudioBuffer " << ID << " has " << audioFrames << " audioFrames\n" << endl;
cout << "AudioBuffer " << ID << " has " << audioFrames << " audioFrames" << " and " << getSize() << " Buffersize\n" << endl;
#endif
}

View File

@ -373,7 +373,7 @@ void handleGuiEvents()
EventLooperClipRequestBuffer returnEvent(ev.track, ev.scene, ab);
writeToDspRingbuffer( &returnEvent );
#ifdef DEBUG_BUFFER
printf("new buffer going to track %i, scene %i\n",ev.track, ev.scene);
printf("new buffer going to track %i, scene %i, size %lu\n",ev.track, ev.scene, ev.numElements);
#endif
}
break;

View File

@ -40,6 +40,11 @@ LooperClip::LooperClip(int t, int s) :
_buffer = new AudioBuffer();
_buffer->nonRtResize( LOOPER_SAMPLES_UPDATE_SIZE );
init();
#ifdef DEBUG_BUFFER
cout << "AudioBuffer " << _buffer->getID() << " has size (init): " << _buffer->getSize() << endl;
#endif
}
void LooperClip::init()