Ignore:
Timestamp:
09/02/09 01:01:19 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

support client names

File:
1 edited

Legend:

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

    r2530 r2531  
    206206 struct roar_stream_server * ss; 
    207207 struct roar_stream        *  s; 
     208 struct roar_client        *  c; 
    208209 int stream; 
    209210 int dir = -1; 
     
    224225 } 
    225226 
     227 if ( clients_get(client, &c) == -1 ) { 
     228  return -1; 
     229 } 
     230 
    226231 ROAR_DBG("emul_esd_on_stream(client=%i, ...): creating stream...", client); 
    227232 if ((stream = streams_new()) == -1 ) { 
     
    248253 emul_esd_int_read_buf(client, &esdformat, data); 
    249254 emul_esd_int_read_buf(client, &rate,      data+_INTSIZE); 
     255 
     256 strncpy(c->name, data + 2*_INTSIZE, ROAR_BUFFER_NAME > ESD_NAME_MAX ? ESD_NAME_MAX : ROAR_BUFFER_NAME); 
     257 c->name[ROAR_BUFFER_NAME-1] = 0; 
    250258 
    251259 ROAR_DBG("emul_esd_on_stream(*): esdformat=0x%.8X, rate=%i", esdformat, rate); 
Note: See TracChangeset for help on using the changeset viewer.