Changeset 2841:29c0a0293758 in roaraudio


Ignore:
Timestamp:
10/03/09 18:11:33 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added roar_vio_simple_new_stream_obj()

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • include/libroar/vio.h

    r2060 r2841  
    3737 
    3838#include "libroar.h" 
     39 
     40struct roar_connection; 
    3941 
    4042// sys io: 
     
    8183int     roar_vio_simple_stream (struct roar_vio_calls * calls, int rate, int channels, int bits, int codec, 
    8284                                                               char * server, int dir, char * name); 
     85 
     86int     roar_vio_simple_new_stream_obj (struct roar_vio_calls * calls, 
     87                                        struct roar_connection * con, 
     88                                        struct roar_stream * s, 
     89                                        int rate, int channels, int bits, int codec, int dir); 
    8390 
    8491// possible VIOs: 
  • libroar/vio.c

    r2060 r2841  
    255255} 
    256256 
     257int     roar_vio_simple_new_stream_obj (struct roar_vio_calls * calls, 
     258                                        struct roar_connection * con, 
     259                                        struct roar_stream * s, 
     260                                        int rate, int channels, int bits, int codec, int dir) { 
     261 int fh; 
     262 
     263 if ( calls == NULL ) 
     264  return -1; 
     265 
     266 if ( (fh = roar_simple_new_stream_obj(con, s, rate, channels, bits, codec, dir)) == -1 ) 
     267  return -1; 
     268 
     269 return roar_vio_open_fh_socket(calls, fh); 
     270} 
     271 
    257272// VIOs: 
    258273 
Note: See TracChangeset for help on using the changeset viewer.