Changeset 1839:bca5ea87a428 in roaraudio


Ignore:
Timestamp:
05/23/09 02:51:47 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

only show s.info.* if the values are != 0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roarclients/roarctl.c

    r1833 r1839  
    260260   printf("Position              : %lu S (%.3fs)\n", (unsigned long int) s.pos, (float)s.pos/(s.info.rate*s.info.channels)); 
    261261 
    262   if ( s.dir != ROAR_DIR_LIGHT_IN && s.dir != ROAR_DIR_LIGHT_OUT ) { 
     262  if ( s.dir != ROAR_DIR_LIGHT_IN && s.dir != ROAR_DIR_LIGHT_OUT && 
     263       s.info.rate                && s.info.bits                 && s.info.channels 
     264     ) { 
    263265   printf("Input rate            : %i\n", s.info.rate); 
    264266   printf("Input bits            : %i\n", s.info.bits); 
Note: See TracChangeset for help on using the changeset viewer.