Changeset 4920:b63e09585737 in roaraudio


Ignore:
Timestamp:
05/08/11 01:39:03 (11 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

replaced atoi()s with roar_str2*()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/sources.c

    r4919 r4920  
    172172 
    173173  if ( strcmp(k, "rate") == 0 ) { 
    174    s->info.rate = atoi(v); 
     174   s->info.rate = roar_str2rate(v); 
    175175  } else if ( strcmp(k, "channels") == 0 ) { 
    176    s->info.channels = atoi(v); 
     176   s->info.channels = roar_str2channels(v); 
    177177  } else if ( strcmp(k, "bits") == 0 ) { 
    178    s->info.bits = atoi(v); 
     178   s->info.bits = roar_str2bits(v); 
    179179  } else if ( strcmp(k, "codec") == 0 ) { 
    180180   if ( (codec = roar_str2codec(v)) == -1 ) { 
Note: See TracChangeset for help on using the changeset viewer.