Changeset 2857:2cef13e65f4c in roaraudio


Ignore:
Timestamp:
10/04/09 05:10:20 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

new ROAR_PROTO_*s

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • include/roaraudio/client.h

    r2812 r2857  
    3737#define ROAR_PROTO_ROARAUDIO        1 
    3838#define ROAR_PROTO_ESOUND           2 
     39#define ROAR_PROTO_AUTO             3 /* auto detect */ 
     40#define ROAR_PROTO_HTTP             4 
     41#define ROAR_PROTO_GOPHER           5 
     42#define ROAR_PROTO_ICY              7 /* Nullsoft ICY */ 
    3943 
    4044#define ROAR_BYTEORDER_UNKNOWN      0x00 
  • libroar/ctl.c

    r2811 r2857  
    488488 } else if ( !strcasecmp(proto, "esound") ) { 
    489489  return ROAR_PROTO_ESOUND; 
     490 } else if ( !strcasecmp(proto, "auto") ) { 
     491  return ROAR_PROTO_AUTO; 
     492 } else if ( !strcasecmp(proto, "(auto)") ) { 
     493  return ROAR_PROTO_AUTO; 
     494 } else if ( !strcasecmp(proto, "http") ) { 
     495  return ROAR_PROTO_HTTP; 
     496 } else if ( !strcasecmp(proto, "gopher") ) { 
     497  return ROAR_PROTO_GOPHER; 
     498 } else if ( !strcasecmp(proto, "icy") ) { 
     499  return ROAR_PROTO_ICY; 
    490500 } 
    491501 
     
    497507  case ROAR_PROTO_ROARAUDIO: return "RoarAudio"; break; 
    498508  case ROAR_PROTO_ESOUND:    return "EsounD";    break; 
     509  case ROAR_PROTO_AUTO:      return "(auto)";    break; 
     510  case ROAR_PROTO_HTTP:      return "http";      break; 
     511  case ROAR_PROTO_GOPHER:    return "gopher";    break; 
     512  case ROAR_PROTO_ICY:       return "ICY";       break; 
    499513  default: 
    500514    return "(unknown)"; 
Note: See TracChangeset for help on using the changeset viewer.