[BACK]Return to dev.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / sndiod

Diff for /src/usr.bin/sndiod/dev.c between version 1.37 and 1.38

version 1.37, 2018/06/26 07:15:17 version 1.38, 2018/06/26 07:22:55
Line 639 
Line 639 
                         }                          }
                         weight /= n;                          weight /= n;
                 }                  }
                 if (weight > i->mix.maxweight)                  if (weight > i->opt->maxweight)
                         weight = i->mix.maxweight;                          weight = i->opt->maxweight;
                 i->mix.weight = ADATA_MUL(weight, MIDI_TO_ADATA(d->master));                  i->mix.weight = ADATA_MUL(weight, MIDI_TO_ADATA(d->master));
 #ifdef DEBUG  #ifdef DEBUG
                 if (log_level >= 3) {                  if (log_level >= 3) {
Line 648 
Line 648 
                         log_puts(": set weight: ");                          log_puts(": set weight: ");
                         log_puti(i->mix.weight);                          log_puti(i->mix.weight);
                         log_puts("/");                          log_puts("/");
                         log_puti(i->mix.maxweight);                          log_puti(i->opt->maxweight);
                         log_puts("\n");                          log_puts("\n");
                 }                  }
 #endif  #endif
Line 1684 
Line 1684 
                 s->xrun = XRUN_IGNORE;                  s->xrun = XRUN_IGNORE;
                 s->tstate = MMC_OFF;                  s->tstate = MMC_OFF;
         }          }
         s->mix.maxweight = s->opt->maxweight;  
         s->dup = s->opt->dup;          s->dup = s->opt->dup;
         s->appbufsz = d->bufsz;          s->appbufsz = d->bufsz;
         s->round = d->round;          s->round = d->round;

Legend:
Removed from v.1.37  
changed lines
  Added in v.1.38