Changeset 3841:9488b79cfb85 in roaraudio


Ignore:
Timestamp:
05/16/10 22:11:16 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

send correct number of samples in per server block

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/emul_rsound.c

    r3825 r3841  
    7070  } 
    7171 
     72  // LATENCY: 
     73  // we currently don't know what we need to set here. 
    7274  buf.i[0] = ROAR_HOST2NET32(0); 
    73   buf.i[1] = ROAR_HOST2NET32(512); 
     75 
     76  // block size used by roard. 
     77  buf.i[1] = ROAR_HOST2NET32(ROAR_OUTPUT_BUFFER_SAMPLES * roar_info2framesize(g_sa) / 8); 
     78 
     79  // Magic zeros to enable protocol handling. 
     80  // (RSD_CONN_PROTO) 
    7481  buf.i[2] = ROAR_HOST2NET32(0); 
    7582  buf.i[3] = ROAR_HOST2NET32(0); 
     
    255262  return clients_delete(client); 
    256263 } else { 
     264  // Unknown command, kill the client. 
    257265  return clients_delete(client); 
    258266 } 
Note: See TracChangeset for help on using the changeset viewer.