GUI: play/stop/change order

This commit is contained in:
tildearrow 2021-12-11 03:34:43 -05:00
parent 9b850c1763
commit f39e2ea112
8 changed files with 95 additions and 19 deletions

View file

@ -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);