Changeset 5466:201ac6bd51ee in roaraudio


Ignore:
Timestamp:
03/31/12 02:41:45 (10 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

accept symbolic names in force-* options

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/config.c

    r5465 r5466  
    289289#endif 
    290290  } else if ( !strcmp(k, "force-rate") ) { 
    291    config->info.rate = atoi(v); 
     291   config->info.rate = roar_str2rate(v); 
    292292  } else if ( !strcmp(k, "force-bits") ) { 
    293    config->info.bits = atoi(v); 
     293   config->info.bits = roar_str2bits(v); 
    294294  } else if ( !strcmp(k, "force-channels") ) { 
    295    config->info.channels = atoi(v); 
     295   config->info.channels = roar_str2channels(v); 
    296296  } else if ( !strcmp(k, "force-codec") ) { 
    297297   config->info.codec = roar_str2codec(v); 
Note: See TracChangeset for help on using the changeset viewer.