mirror of
https://github.com/vale981/openAV-Luppp
synced 2025-03-05 09:01:39 -05:00
-Added SaveAble interface
This commit is contained in:
parent
1cbe41f7ed
commit
9189dab96e
1 changed files with 24 additions and 0 deletions
24
src/save/saveable.hxx
Normal file
24
src/save/saveable.hxx
Normal file
|
@ -0,0 +1,24 @@
|
|||
|
||||
#ifndef LUPPP_SAVEABLE_H
|
||||
#define LUPPP_SAVEABLE_H
|
||||
|
||||
/** SaveAble
|
||||
* This class is inherited from by all classes that can save thier state.
|
||||
* The virtual save() function is overriden, and called when a save action is
|
||||
* triggered.
|
||||
*
|
||||
* This flexibility allows eg LooperClips to request buffers to transer audio
|
||||
* data into the GUI thread for disk serialization, and scales for future
|
||||
* classes which also need to request memory in order to save in a RT safe way.
|
||||
**/
|
||||
class SaveAble
|
||||
{
|
||||
public:
|
||||
SaveAble();
|
||||
|
||||
/// this function is called when the user initiates a save action
|
||||
virtual void save();
|
||||
};
|
||||
|
||||
#endif // LUPPP_SAVEABLE_H
|
||||
|
Loading…
Add table
Reference in a new issue