-LooperClip implements SaveAble interface

This commit is contained in:
Harry van Haaren 2013-09-03 17:47:38 +01:00
parent 6601dab3ff
commit 76a8fe7d91
4 changed files with 11 additions and 2 deletions

View file

@ -11,6 +11,7 @@
extern Jack* jack;
LooperClip::LooperClip(int t, int s) :
SaveAble(),
track(t),
scene(s)
{

View file

@ -3,6 +3,7 @@
#define LUPPP_LOOPER_CLIP_H
#include <stdio.h>
#include "save/saveable.hxx"
#include "config.hxx"
#include "gridlogic.hxx"
@ -23,8 +24,10 @@ class AudioBuffer;
* Each clip has its properties like length and bars/beats, so the Looper knows
* to dynamically stretch / process the audio appropriately. Controllers and the
* UI are updated from this data.
*
* This class inherits from SaveAble to save its state.
**/
class LooperClip
class LooperClip : public SaveAble
{
public:
LooperClip(int track, int scene);

View file

@ -1,6 +1,10 @@
#include "save.hxx"
#include <iostream>
using namespace std;
Save::Save()
{
@ -8,6 +12,7 @@ Save::Save()
void Save::registerSaveable(SaveAble* s)
{
//cout << "Save::registerSaveable() " << s << endl;
saveables.push_back( s );
}

View file

@ -47,7 +47,7 @@ namespace Worker
char* out = cJSON_Print(root);
cout << out << endl;
//cout << out << endl;
}
/// loads a sample into a new AudioBuffer, returning the buffer