add some buffer debug output
parent
c91d593818
commit
b03a660523
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue