Changeset 2828:ea6c979c9cab in roaraudio


Ignore:
Timestamp:
10/02/09 23:00:04 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

esd emulation code does check for byte order

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • plugins/roard/protocol-esound.c

    r2791 r2828  
    192192 
    193193int emul_esd_test_byteorder(int client, void * data) { 
    194  // TODO: do a real test 
     194 struct roar_client * c; 
     195 
     196 if ( clients_get(client, &c) == -1 ) 
     197  return -1; 
     198 
     199// "NDNE"; 
     200 
     201 if ( !memcmp(data, "NDNE", 4) ) { 
     202  c->byteorder = ROAR_BYTEORDER_LE; 
     203 } else if ( !memcmp(data, "ENDE", 4) ) { 
     204  c->byteorder = ROAR_BYTEORDER_BE; 
     205 } else if ( !memcmp(data, "NEED", 4) ) { 
     206  c->byteorder = ROAR_BYTEORDER_PDP; 
     207 } else { 
     208  return -1; 
     209 } 
     210 
    195211 return 0; 
    196212} 
  • roard/clients.c

    r2815 r2828  
    182182 switch (proto) { 
    183183  case ROAR_PROTO_ROARAUDIO: 
     184  case ROAR_PROTO_ESOUND: 
    184185    byteorder = ROAR_BYTEORDER_NETWORK; 
    185    break; 
    186   case ROAR_PROTO_ESOUND: 
    187     byteorder = ROAR_BYTEORDER_NATIVE; 
    188186   break; 
    189187 } 
Note: See TracChangeset for help on using the changeset viewer.