[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.46 and 1.47

version 1.46, 2018/06/26 07:44:35 version 1.47, 2018/06/26 07:49:44
Line 1773 
Line 1773 
 #endif  #endif
         s->next = d->slot_list;          s->next = d->slot_list;
         d->slot_list = s;          d->slot_list = s;
         s->skip = 0;  
         if (s->mode & MODE_PLAY) {          if (s->mode & MODE_PLAY) {
                 s->mix.vol = MIDI_TO_ADATA(s->vol);                  s->mix.vol = MIDI_TO_ADATA(s->vol);
                 dev_mix_adjvol(d);                  dev_mix_adjvol(d);
         }          }
         if (s->mode & MODE_RECMASK) {  
                 /*  
                  * N-th recorded block is the N-th played block  
                  */  
                 s->sub.prime = -startpos / (int)s->round;  
         }  
 }  }
   
 /*  /*
Line 1840 
Line 1833 
         }          }
 #endif  #endif
         slot_allocbufs(s);          slot_allocbufs(s);
   
           if (s->mode & MODE_RECMASK) {
                   /*
                    * N-th recorded block is the N-th played block
                    */
                   s->sub.prime = -dev_getpos(s->dev) / s->dev->round;
           }
           s->skip = 0;
   
         if (s->mode & MODE_PLAY) {          if (s->mode & MODE_PLAY) {
                 s->pstate = SLOT_START;                  s->pstate = SLOT_START;
         } else {          } else {

Legend:
Removed from v.1.46  
changed lines
  Added in v.1.47