Changeset 2570:2e2f30d32a85 in roaraudio for roarclients
- Timestamp:
- 09/05/09 03:16:47 (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roarclients/roarphone.c
r2568 r2570 355 355 }; 356 356 struct roar_audio_info dinfo; 357 struct roar_vio_calls dvio, svio ;357 struct roar_vio_calls dvio, svio, svio_real; 358 358 char * driver = DRIVER; 359 359 char * device = NULL; … … 470 470 471 471 if ( roar_cdriver_open(&dvio, driver, device, &dinfo, ROAR_DIR_BIDIR) == -1 ) { 472 ROAR_ERR("Can not open sound card."); 472 473 return 1; 473 474 } 474 475 475 476 ROAR_DBG("main(*): CALL open_stream(&svio, server, &info)"); 476 if ( open_stream(&svio, server, &info) == -1 ) { 477 if ( open_stream(&svio_real, server, &info) == -1 ) { 478 ROAR_ERR("Can not open connection to server."); 477 479 roar_vio_close(&dvio); 478 480 return 2; 479 481 } 480 482 ROAR_DBG("main(*): RET"); 483 484 if ( roar_vio_open_re(&svio, &svio_real) == -1 ) { 485 ROAR_ERR("Can not open connection to server (RE VIO)."); 486 roar_vio_close(&dvio); 487 return 2; 488 } 481 489 482 490 set_meta();
Note: See TracChangeset
for help on using the changeset viewer.