earliest playback

no sound, just terminal output
This commit is contained in:
tildearrow 2021-05-12 03:58:55 -05:00
parent 9d17655836
commit f810fc0c3c
15 changed files with 901 additions and 22 deletions

View file

@ -0,0 +1,14 @@
#include "../dispatch.h"
void DivDispatch::acquire(short& l, short& r) {
l=0;
r=0;
}
int DivDispatch::dispatch(DivCommand c) {
return 1;
}
int DivDispatch::init(DivEngine* p, int channels, int sugRate) {
return 0;
}

View file

@ -0,0 +1,16 @@
#include "dummy.h"
void DivPlatformDummy::acquire(short& l, short& r) {
l=0;
r=0;
}
int DivPlatformDummy::dispatch(DivCommand c) {
return 1;
}
int DivPlatformDummy::init(DivEngine* p, int channels, int sugRate) {
parent=p;
rate=sugRate;
return channels;
}

View file

@ -4,7 +4,7 @@
// used when a DivDispatch for a system is not found.
class DivPlatformDummy: public DivDispatch {
public:
void acquire(float& l, float& r);
void acquire(short& l, short& r);
int dispatch(DivCommand c);
int init(int channels);
int init(DivEngine* parent, int channels, int sugRate);
};