-Added FIXME notes

This commit is contained in:
Harry van Haaren 2013-09-05 23:54:58 +01:00
parent ac0741fd72
commit cd7336947f
3 changed files with 23 additions and 0 deletions

View file

@ -21,6 +21,7 @@ class AudioBuffer
} }
AudioBuffer(unsigned long size) AudioBuffer(unsigned long size)
{ {
// FIXME recorded buffers don't get an ID, using garbage IDs
/// no ID assigned: it *takes* the one from the previous buffer! /// no ID assigned: it *takes* the one from the previous buffer!
numBeats = 0; numBeats = 0;
audioFrames = 0; audioFrames = 0;

View file

@ -50,6 +50,27 @@ void LooperClip::save()
} }
} }
void LooperClip::reset()
{
// TODO make the LooperClip reset to initial state
/*
if ( _loaded )
{
char buffer [50];
sprintf (buffer, "LC::save() track %i, scene %i", track,scene);
EventGuiPrint e( buffer );
writeToGuiRingbuffer( &e );
EventRequestSaveBuffer e2( track, scene, _buffer->getAudioFrames() );
writeToGuiRingbuffer( &e2 );
}
else
{
SaveAble::done();
}
*/
}
/// loads a sample: eg from disk, unloading current sample if necessary /// loads a sample: eg from disk, unloading current sample if necessary
void LooperClip::load( AudioBuffer* ab ) void LooperClip::load( AudioBuffer* ab )
{ {

View file

@ -44,6 +44,7 @@ class LooperClip : public SaveAble
/// SaveAble overrides /// SaveAble overrides
void save(); void save();
void reset();
/// analyses current _playing _recording vars, returns the current State /// analyses current _playing _recording vars, returns the current State
GridLogic::State getState(); GridLogic::State getState();