earliest playback
no sound, just terminal output
This commit is contained in:
parent
9d17655836
commit
f810fc0c3c
15 changed files with 901 additions and 22 deletions
14
src/engine/platform/abstract.cpp
Normal file
14
src/engine/platform/abstract.cpp
Normal 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;
|
||||
}
|
||||
|
|
@ -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;
|
||||
}
|
||||
|
|
@ -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);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue