Changeset 2970:624ab1461d6b in roaraudio


Ignore:
Timestamp:
10/21/09 21:07:57 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added --verbose, configure new ROAR_INFO()

Location:
roard
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • roard/include/roard.h

    r2945 r2970  
    2525#ifndef _ROARD_H_ 
    2626#define _ROARD_H_ 
     27 
     28// configure ROAR_INFO() 
     29int g_verbose; 
     30#define ROAR_DBG_INFOVAR g_verbose 
    2731 
    2832// need to include this first as we need the config 
  • roard/roard.c

    r2968 r2970  
    4545 printf( 
    4646        " --daemon              - Bring the server into background after init\n" 
     47        " --verbose             - Be more verbose, can be used multiple times\n" 
    4748        " --terminate           - Terminate after last client quited\n" 
    4849        " --start               - No op parameter (starting roard is default operation)\n" 
     
    900901#endif 
    901902 
     903 g_verbose       = ROAR_DBG_INFO_NONE; 
     904 
    902905 sa.bits     = ROAR_BITS_DEFAULT; 
    903906 sa.channels = ROAR_CHANNELS_DEFAULT; 
     
    10411044   ROAR_ERR("--daemon not supported"); 
    10421045#endif 
     1046  } else if ( strcmp(k, "--verbose") == 0 ) { 
     1047   g_verbose++; 
    10431048  } else if ( strcmp(k, "--terminate") == 0 ) { 
    10441049   g_terminate = 1; 
Note: See TracChangeset for help on using the changeset viewer.