better volume slide accuracy
volume slide seems to be kind of quirky: - sliding all the way down and then up suddenly sets the vol to max - apparently there is an overflow and the slide stops when it reaches its boundaries (instead of continuing)
This commit is contained in:
parent
67847d79cf
commit
9736b77401
8 changed files with 36 additions and 8 deletions
|
|
@ -697,6 +697,11 @@ bool DivEngine::init() {
|
|||
blip_set_rates(bb[0],dispatch->rate,got.rate);
|
||||
blip_set_rates(bb[1],dispatch->rate,got.rate);
|
||||
|
||||
for (int i=0; i<chans; i++) {
|
||||
chan[i].volMax=dispatch->dispatch(DivCommand(DIV_CMD_GET_VOLMAX,i))<<8;
|
||||
chan[i].volume=chan[i].volMax;
|
||||
}
|
||||
|
||||
if (!output->setRun(true)) {
|
||||
logE("error while activating!\n");
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue