mirror of
https://github.com/vale981/openAV-Luppp
synced 2025-03-05 09:01:39 -05:00
-LooperClip implements SaveAble interface
This commit is contained in:
parent
6601dab3ff
commit
76a8fe7d91
4 changed files with 11 additions and 2 deletions
|
@ -11,6 +11,7 @@
|
|||
extern Jack* jack;
|
||||
|
||||
LooperClip::LooperClip(int t, int s) :
|
||||
SaveAble(),
|
||||
track(t),
|
||||
scene(s)
|
||||
{
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue