Changeset 3921:4c4449728a41 in roaraudio for roard/emul_rsound.c


Ignore:
Timestamp:
06/09/10 09:37:40 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added RSD EXEC feature to protocol emulation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/emul_rsound.c

    r3918 r3921  
    275275  strncpy(c->name, msg.datasp, max_len); 
    276276  c->name[max_len] = 0; 
     277 } else if ( !strncmp(msg.datasp, "CLOSECTL", 9) ) { 
     278  if ( clients_get(client, &c) == -1 ) 
     279   return clients_delete(client); 
     280 
     281  strncpy(msg.data, " CLOSECTL OK", EMUL_RSOUND_MSG_DATA_LEN); 
     282  msg.datalen = 12; //strlen(" CLOSECTL OK"); 
     283 
     284  if ( emul_rsound_vsend_msg(&msg, vio) == -1 ) { 
     285   return clients_delete(client); 
     286  } 
     287 
     288  streamid = c->streams[0]; 
     289  if ( client_stream_exec(client, streamid) == -1 ) { 
     290   return clients_delete(client); 
     291  } 
     292 
     293  return 0; 
    277294 } else { 
    278295  // Unknown command, kill the client. 
Note: See TracChangeset for help on using the changeset viewer.