Changeset 5623:cd8f318fd1a9 in roaraudio for libroar
- Timestamp:
- 08/17/12 02:47:05 (12 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/meta.c
r5622 r5623 424 424 }; 425 425 426 // TODO: Why do we return a non-const buffer here? 427 char * roar_meta_strtype(const int type) { 426 const char * roar_meta_strtype(const int type) { 428 427 int i; 429 428 static char name[ROAR_META_MAX_NAMELEN]; … … 632 631 // we test for the key, unknown keys get ignored. 633 632 if ( !strcasecmp(k, "rate") ) { 634 info->rate = atoi(v);633 info->rate = roar_str2rate(v); 635 634 } else if ( !strcasecmp(k, "bits") ) { 636 info->bits = atoi(v);635 info->bits = roar_str2bits(v); 637 636 } else if ( !strcasecmp(k, "channels") ) { 638 info->channels = atoi(v);637 info->channels = roar_str2channels(v); 639 638 } else if ( !strcasecmp(k, "codec") ) { 640 639 info->codec = roar_str2codec(v);
Note: See TracChangeset
for help on using the changeset viewer.