Changeset 3684:69134bcda4c2 in roaraudio for roard/network.c


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

added most of the rsound interface

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/network.c

    r3603 r3684  
    9696 ROAR_DBG("net_get_new_client(void): fh = %i", fh); 
    9797 
     98#ifndef ROAR_WITHOUT_DCOMP_EMUL_RSOUND 
     99 if ( lsock->proto == ROAR_PROTO_RSOUND ) { 
     100  client = emul_rsound_on_connect(fh, lsock); 
     101  switch (client) { 
     102   case -1: return -1; break; 
     103   case -2: return  0; break; 
     104   default: // TODO: write error handling 
     105     clients_get(client, &c); 
     106     fh = c->fh; 
     107    break; 
     108  } 
     109 } else { 
     110#endif 
     111 
    98112 client = clients_new(); 
    99113 
     
    107121  return -1; 
    108122 } 
     123#ifndef ROAR_WITHOUT_DCOMP_EMUL_RSOUND 
     124 } 
     125#endif 
    109126 
    110127 if ( clients_get(client, &c) != -1 ) { 
     
    166183   break; 
    167184#endif 
     185#ifndef ROAR_WITHOUT_DCOMP_EMUL_RSOUND 
     186  case ROAR_PROTO_RSOUND: // nothing to do here. 
     187   break; 
     188#endif 
    168189  default: 
    169190    // OS independiend code to close the socket: 
Note: See TracChangeset for help on using the changeset viewer.