Changeset 2828:ea6c979c9cab in roaraudio
- Timestamp:
- 10/02/09 23:00:04 (14 years ago)
- Branch:
- default
- Phase:
- public
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/roard/protocol-esound.c
r2791 r2828 192 192 193 193 int 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 195 211 return 0; 196 212 } -
roard/clients.c
r2815 r2828 182 182 switch (proto) { 183 183 case ROAR_PROTO_ROARAUDIO: 184 case ROAR_PROTO_ESOUND: 184 185 byteorder = ROAR_BYTEORDER_NETWORK; 185 break;186 case ROAR_PROTO_ESOUND:187 byteorder = ROAR_BYTEORDER_NATIVE;188 186 break; 189 187 }
Note: See TracChangeset
for help on using the changeset viewer.