Changeset 3256:781ecf0a7bcf in roaraudio
- Timestamp:
- 01/30/10 14:28:14 (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/roard.c
r3252 r3256 378 378 379 379 // in case we opened the listening socket correctly. 380 if ( dir == -1 ) 381 dir = ROAR_DIR_PLAY; 382 380 383 g_listen[sockid].inst.stpl.dir = dir; 381 384 memcpy(&(g_listen[sockid].inst.stpl.info), info, sizeof(struct roar_audio_info)); 385 386 switch (dir) { 387 case ROAR_DIR_PLAY: 388 case ROAR_DIR_RECORD: 389 case ROAR_DIR_MONITOR: 390 case ROAR_DIR_FILTER: 391 case ROAR_DIR_BIDIR: 392 if ( !g_listen[sockid].inst.stpl.info.rate ) 393 g_listen[sockid].inst.stpl.info.rate = g_sa->rate; 394 395 if ( !g_listen[sockid].inst.stpl.info.bits ) 396 g_listen[sockid].inst.stpl.info.bits = g_sa->bits; 397 398 if ( !g_listen[sockid].inst.stpl.info.channels ) 399 g_listen[sockid].inst.stpl.info.channels = g_sa->channels; 400 401 if ( !g_listen[sockid].inst.stpl.info.codec ) 402 g_listen[sockid].inst.stpl.info.codec = g_sa->codec; 403 break; 404 } 405 382 406 server[sockid] = addr; 383 407 return 0;
Note: See TracChangeset
for help on using the changeset viewer.