Changeset 3962:8059d8c472e5 in roaraudio


Ignore:
Timestamp:
06/25/10 18:50:25 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added --aiprofile

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/roard.c

    r3959 r3962  
    8181        " -B  --bits   BITS     - Set server bits\n" 
    8282        " -C  --chans  CHANNELS - Set server channels\n" 
     83        " --aiprofile PROFILE   - Use the given audio profile\n" 
    8384       ); 
    8485 
     
    13471348   sa.channels = atoi(argv[++i]); 
    13481349 
     1350  } else if ( strcmp(k, "--aiprofile") == 0 ) { 
     1351   if ( roar_profile2info(&sa, argv[++i]) == -1 ) { 
     1352    ROAR_ERR("Unknown audio profile: %s", argv[i]); 
     1353    return 1; 
     1354   } 
     1355   sa.codec    = ROAR_CODEC_DEFAULT; 
     1356 
    13491357  } else if ( strcmp(k, "--stream-flags") == 0 ) { 
    13501358   if ( update_stream_flags(argv[++i]) == -1 ) { 
Note: See TracChangeset for help on using the changeset viewer.