new chan osc, part 6
more adaptations how can I get you out of my head... I want to go back to work!
This commit is contained in:
parent
fe00ee805d
commit
6265d2cd39
27 changed files with 293 additions and 123 deletions
|
|
@ -88,6 +88,7 @@ void DivPlatformPokeMini::rWrite(unsigned char addr, unsigned char val) {
|
|||
|
||||
void DivPlatformPokeMini::acquire(short** buf, size_t len) {
|
||||
int out=0;
|
||||
oscBuf->begin(len);
|
||||
for (size_t i=0; i<len; i++) {
|
||||
for (int j=0; j<PCSPKR_DIVIDER; j++) {
|
||||
elapsedMain++;
|
||||
|
|
@ -103,12 +104,13 @@ void DivPlatformPokeMini::acquire(short** buf, size_t len) {
|
|||
if (on) {
|
||||
out=(pos>=pivot && !isMuted[0])?volTable[vol&3]:0;
|
||||
buf[0][i]=out;
|
||||
oscBuf->data[oscBuf->needle++]=out;
|
||||
oscBuf->putSample(i,out);
|
||||
} else {
|
||||
buf[0][i]=0;
|
||||
oscBuf->data[oscBuf->needle++]=0;
|
||||
oscBuf->putSample(i,0);
|
||||
}
|
||||
}
|
||||
oscBuf->end(len);
|
||||
}
|
||||
|
||||
void DivPlatformPokeMini::tick(bool sysTick) {
|
||||
|
|
@ -323,7 +325,7 @@ void DivPlatformPokeMini::setFlags(const DivConfig& flags) {
|
|||
CHECK_CUSTOM_CLOCK;
|
||||
|
||||
rate=chipClock/PCSPKR_DIVIDER;
|
||||
oscBuf->rate=rate;
|
||||
oscBuf->setRate(rate);
|
||||
}
|
||||
|
||||
void DivPlatformPokeMini::notifyInsDeletion(void* ins) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue