Changeset 5115:3f841b146bef in roaraudio
- Timestamp:
- 08/01/11 03:02:27 (13 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- libroar
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/Makefile
r5109 r5115 7 7 VIO_META=vio.o vio_select.o vio_ops.o vio_string.o 8 8 VIO_BRIDGE=vio_bio.o vio_stdio.o 9 VIO=$(VIO_META) $(VIO_BRIDGE) vio_cmd.o vio_magic.o vio_pipe.o vio_socket.o vio_winsock.o vio_stack.o vio_jumbo.o vio_proto.o vio_dstr.o vio_tantalos.o vio_rtp.o vio_buffer.o vio_buffer_store.o vio_stdvios.o vio_misc.o vio_zlib.o 9 VIO=$(VIO_META) $(VIO_BRIDGE) vio_cmd.o vio_magic.o vio_pipe.o vio_socket.o vio_winsock.o vio_stack.o vio_jumbo.o vio_proto.o vio_dstr.o vio_tantalos.o vio_rtp.o vio_buffer.o vio_buffer_store.o vio_stdvios.o vio_misc.o vio_zlib.o vio_stream.o 10 10 HASHES=hash.o hash_tiger.o 11 11 PASSWORD=passwordapi.o pinentry.o sshaskpass.o -
libroar/vio.c
r5114 r5115 408 408 } 409 409 410 int roar_vio_simple_stream (struct roar_vio_calls * calls, int rate, int channels, int bits, int codec,411 const char * server, int dir, const char * name) {412 int fh;413 414 if ( calls == NULL ) {415 roar_err_set(ROAR_ERROR_FAULT);416 return -1;417 }418 419 roar_libroar_nowarn();420 if ( (fh = roar_simple_stream(rate, channels, bits, codec, server, dir, name)) == -1 ) {421 roar_libroar_warn();422 return -1;423 }424 roar_libroar_warn();425 426 return roar_vio_open_fh_socket(calls, fh);427 }428 429 int roar_vio_simple_new_stream_obj (struct roar_vio_calls * calls,430 struct roar_connection * con,431 struct roar_stream * s,432 int rate, int channels, int bits, int codec, int dir) {433 struct roar_stream stream;434 int fh;435 436 ROAR_DBG("roar_vio_simple_new_stream_obj(*) = ?");437 438 if ( calls == NULL ) {439 roar_err_set(ROAR_ERROR_FAULT);440 return -1;441 }442 443 if ( s == NULL )444 s = &stream;445 446 roar_libroar_nowarn();447 if ( (fh = roar_simple_new_stream_obj(con, s, rate, channels, bits, codec, dir)) == -1 ) {448 roar_libroar_warn();449 ROAR_DBG("roar_vio_simple_new_stream_obj(*) = -1");450 return -1;451 }452 roar_libroar_warn();453 454 ROAR_DBG("roar_vio_simple_new_stream_obj(*): fh=%i", fh);455 456 return roar_vio_open_fh_socket(calls, fh);457 }458 410 459 411 // VIOs:
Note: See TracChangeset
for help on using the changeset viewer.