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

Diff for /src/usr.bin/aucat/Attic/dev.c between version 1.61 and 1.62

version 1.61, 2010/06/29 06:57:00 version 1.62, 2010/07/06 01:12:45
Line 169 
Line 169 
         d->reqmode = MODE_PLAY | MODE_REC | MODE_LOOP;          d->reqmode = MODE_PLAY | MODE_REC | MODE_LOOP;
         d->pstate = DEV_CLOSED;          d->pstate = DEV_CLOSED;
         d->hold = 0;          d->hold = 0;
           d->path = "loop";
         d->next = dev_list;          d->next = dev_list;
         dev_list = d;          dev_list = d;
         return d;          return d;
Line 190 
Line 191 
         d->reqmode = 0;          d->reqmode = 0;
         d->pstate = DEV_CLOSED;          d->pstate = DEV_CLOSED;
         d->hold = 0;          d->hold = 0;
           d->path = "midithru";
         d->next = dev_list;          d->next = dev_list;
         dev_list = d;          dev_list = d;
         return d;          return d;
Line 237 
Line 239 
                 if (f == NULL) {                  if (f == NULL) {
 #ifdef DEBUG  #ifdef DEBUG
                         if (debug_level >= 1) {                          if (debug_level >= 1) {
                                 dbg_puts(d->path ? d->path : "default");                                  dbg_puts(d->path);
                                 dbg_puts(": failed to open audio device\n");                                  dbg_puts(": failed to open audio device\n");
                         }                          }
 #endif  #endif
Line 250 
Line 252 
                 if ((d->mode & (MODE_PLAY | MODE_REC)) == 0) {                  if ((d->mode & (MODE_PLAY | MODE_REC)) == 0) {
 #ifdef DEBUG  #ifdef DEBUG
                         if (debug_level >= 1) {                          if (debug_level >= 1) {
                                 dbg_puts(d->path ? d->path : "default");                                  dbg_puts(d->path);
                                 dbg_puts(": mode not supported by device\n");                                  dbg_puts(": mode not supported by device\n");
                         }                          }
 #endif  #endif
Line 260 
Line 262 
 #ifdef DEBUG  #ifdef DEBUG
                 if (debug_level >= 2) {                  if (debug_level >= 2) {
                         if (d->mode & MODE_REC) {                          if (d->mode & MODE_REC) {
                                 dbg_puts("hw recording ");                                  dbg_puts(d->path);
                                   dbg_puts(": recording ");
                                 aparams_dbg(&d->ipar);                                  aparams_dbg(&d->ipar);
                                 dbg_puts("\n");                                  dbg_puts("\n");
                         }                          }
                         if (d->mode & MODE_PLAY) {                          if (d->mode & MODE_PLAY) {
                                 dbg_puts("hw playing ");                                  dbg_puts(d->path);
                                   dbg_puts(": playing ");
                                 aparams_dbg(&d->opar);                                  aparams_dbg(&d->opar);
                                 dbg_puts("\n");                                  dbg_puts("\n");
                         }                          }
Line 381 
Line 385 
 #ifdef DEBUG  #ifdef DEBUG
         if (debug_level >= 2) {          if (debug_level >= 2) {
                 if (d->mode & (MODE_PLAY | MODE_RECMASK)) {                  if (d->mode & (MODE_PLAY | MODE_RECMASK)) {
                         dbg_puts("device block size is ");                          dbg_puts(d->path);
                           dbg_puts(": block size is ");
                         dbg_putu(d->round);                          dbg_putu(d->round);
                         dbg_puts(" frames, using ");                          dbg_puts(" frames, using ");
                         dbg_putu(d->bufsz / d->round);                          dbg_putu(d->bufsz / d->round);

Legend:
Removed from v.1.61  
changed lines
  Added in v.1.62