Changeset 3531:c850208ec638 in roaraudio


Ignore:
Timestamp:
02/19/10 21:10:03 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

do not display rpg infos on zero-channel streams

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roarclients/roarctl.c

    r3530 r3531  
    447447 fs = (float)mixer.scale / 100.; 
    448448 
    449  printf("Mixer ReplayGain      : %i/%i (%.2f%%" _DB ")\n", mixer.rpg_mul, mixer.rpg_div, 
    450                                                          100.*(float)mixer.rpg_mul/((float)mixer.rpg_div) 
     449 if ( channels ) { // we hide RPG info for zero-channel streams 
     450  printf("Mixer ReplayGain      : %i/%i (%.2f%%" _DB ")\n", mixer.rpg_mul, mixer.rpg_div, 
     451                                                          100.*(float)mixer.rpg_mul/((float)mixer.rpg_div) 
    451452#ifdef ROAR_HAVE_LIBM 
    452                           , 20*log10f((float)mixer.rpg_mul/(float)mixer.rpg_div) 
    453 #endif 
    454        ); 
     453                           , 20*log10f((float)mixer.rpg_mul/(float)mixer.rpg_div) 
     454#endif 
     455        ); 
     456 } 
    455457 
    456458 for (i = 0; i < channels; i++) 
Note: See TracChangeset for help on using the changeset viewer.