fix some macroInt issues with volume
This commit is contained in:
parent
69c3700ab4
commit
d58270efed
2 changed files with 8 additions and 6 deletions
|
|
@ -75,15 +75,13 @@ void DivPlatformVIC20::acquire(short** buf, size_t len) {
|
|||
}
|
||||
|
||||
void DivPlatformVIC20::calcAndWriteOutVol(int ch, int env) {
|
||||
logV("calcAndWriteOutVol (%d, %d)",ch,env);
|
||||
chan[ch].outVol=MIN(chan[ch].vol*env/15,15);
|
||||
writeOutVol(ch);
|
||||
}
|
||||
|
||||
void DivPlatformVIC20::writeOutVol(int ch) {
|
||||
if (chan[ch].active) {
|
||||
logV("writeOutVol (%d): %d",ch,chan[ch].outVol);
|
||||
rWrite(14,chan[ch].outVol);
|
||||
}
|
||||
rWrite(14,chan[ch].outVol);
|
||||
}
|
||||
|
||||
void DivPlatformVIC20::tick(bool sysTick) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue