Changeset 3861:1afd922562eb in roaraudio
- Timestamp:
- 05/16/10 23:09:37 (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roarclients/roarlight.c
r3811 r3861 51 51 int32_t chan, val; 52 52 struct roar_roardmx_message mes; 53 int fh; //TODO: we should use pure VIO here54 53 struct roar_vio_calls vio; 55 54 … … 79 78 } 80 79 81 if ( (fh = roar_simple_new_stream(con, 82 ROAR_RATE_DEFAULT, ROAR_CHANNELS_DEFAULT, ROAR_BITS_DEFAULT, 83 ROAR_CODEC_ROARDMX, ROAR_DIR_LIGHT_IN 84 )) == -1 ) 80 if ( roar_vio_simple_new_stream_obj(&vio, con, NULL, 81 ROAR_RATE_DEFAULT, ROAR_CHANNELS_DEFAULT, ROAR_BITS_DEFAULT, 82 ROAR_CODEC_ROARDMX, ROAR_DIR_LIGHT_IN) == -1 ) 85 83 return -1; 86 87 if ( roar_vio_open_fh_socket(&vio, fh) == -1 ) {88 close(fh);89 return -1;90 }91 84 92 85 if ( roar_roardmx_message_send(&mes, &vio) == -1 ) {
Note: See TracChangeset
for help on using the changeset viewer.