GUI: play/stop/change order
This commit is contained in:
parent
9b850c1763
commit
f39e2ea112
8 changed files with 95 additions and 19 deletions
|
|
@ -4,6 +4,7 @@
|
|||
#include "dispatch.h"
|
||||
#include "../audio/taAudio.h"
|
||||
#include "blip_buf.h"
|
||||
#include <mutex>
|
||||
|
||||
enum DivStatusView {
|
||||
DIV_STATUS_NOTHING=0,
|
||||
|
|
@ -71,6 +72,7 @@ class DivEngine {
|
|||
DivStatusView view;
|
||||
DivChannelState chan[17];
|
||||
DivAudioEngines audioEngine;
|
||||
std::mutex isBusy;
|
||||
|
||||
short vibTable[64];
|
||||
|
||||
|
|
@ -107,6 +109,15 @@ class DivEngine {
|
|||
// play
|
||||
void play();
|
||||
|
||||
// stop
|
||||
void stop();
|
||||
|
||||
// get current order
|
||||
unsigned char getOrder();
|
||||
|
||||
// go to order
|
||||
void setOrder(unsigned char order);
|
||||
|
||||
// set remaining loops. -1 means loop forever.
|
||||
void setLoops(int loops);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue