-Updated SaveAble observer to include reset() function

main
Harry van Haaren 2013-09-05 23:48:47 +01:00
parent a702630f40
commit ac0741fd72
3 changed files with 11 additions and 2 deletions

View File

@ -13,7 +13,14 @@ SaveAble::SaveAble()
jack->getSave()->registerSaveable( this );
}
void SaveAble::save(){};
void SaveAble::reset()
{
}
void SaveAble::save()
{
}
void SaveAble::done()
{

View File

@ -16,6 +16,9 @@ class SaveAble
public:
SaveAble();
/// this function being called resets the state of the instance to blank
virtual void reset();
/// this function is called when the user initiates a save action
virtual void save();

View File

@ -64,7 +64,6 @@ void TrackOutput::process(unsigned int nframes, Buffers* buffers)
if (uiUpdateCounter > uiUpdateConstant )
{
// FIXME: should be using ControllerUpdater
EventTrackSignalLevel e( track, dbMeter.getLeftDB() * _toMaster, dbMeter.getRightDB() * _toMaster );
writeToGuiRingbuffer( &e );
uiUpdateCounter = 0;