Changeset 5384:7878569294fa in roaraudio


Ignore:
Timestamp:
01/09/12 20:59:48 (12 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added support for beep command as well as support µs display for ping

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roarclients/roarctl.c

    r5383 r5384  
    7979#endif 
    8080        "  whoami                  - Get own client ID\n" 
     81        "\n" 
     82        "  beep                    - Ask the server to beep.\n" 
    8183        "\n" 
    8284        "  listaiprofiles          - list audio info profiles\n" 
     
    246248  ans.tv_usec -= try.tv_usec; 
    247249 
    248   printf("Pong from server: seq=%i time=%.3fms\n", i, (cur = ans.tv_usec/1000.0)); 
     250  cur = ans.tv_usec/1000.0; 
     251 
     252  printf("Pong from server: seq=%i time=%.3f%cs\n", i, cur < 0.5 ? cur*1000.0 : cur, cur < 0.5 ? 'u' : 'm'); 
    249253 
    250254  sum += cur; 
     
    12951299  } else if ( !strcmp(k, "whoami") ) { 
    12961300   printf("My client ID is: %i\n", roar_get_clientid(&con)); 
     1301  } else if ( !strcmp(k, "beep") ) { 
     1302   roar_beep(&con, NULL); 
    12971303  } else if ( !strcmp(k, "serverinfo") ) { 
    12981304   server_info(&con); 
Note: See TracChangeset for help on using the changeset viewer.