PC speaker: improvements

This commit is contained in:
tildearrow 2022-03-05 00:36:50 -05:00
parent b6717fd314
commit 16dfc785d3
4 changed files with 107 additions and 5 deletions

View file

@ -53,12 +53,19 @@ class DivPlatformPCSpeaker: public DivDispatch {
Channel chan[1];
bool isMuted[1];
bool on, flip;
int pos;
int pos, speakerType;
float low, band;
float low2, high2, band2;
float low3, band3;
unsigned short freq;
unsigned char regPool[2];
friend void putDispatchChan(void*,int,int);
void acquire_unfilt(short* bufL, short* bufR, size_t start, size_t len);
void acquire_cone(short* bufL, short* bufR, size_t start, size_t len);
void acquire_piezo(short* bufL, short* bufR, size_t start, size_t len);
public:
void acquire(short* bufL, short* bufR, size_t start, size_t len);
int dispatch(DivCommand c);