Changeset 1275:b1bc589b9c69 in roaraudio


Ignore:
Timestamp:
02/27/09 17:09:30 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added support to create a vio object out of a simple stream

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • include/libroar/vio.h

    r1253 r1275  
    9999int     roar_vio_open_file     (struct roar_vio_calls * calls, char * filename, int flags, mode_t mode); 
    100100int     roar_vio_open_fh       (struct roar_vio_calls * calls, int fh); 
     101 
     102int     roar_vio_simple_stream (struct roar_vio_calls * calls, int rate, int channels, int bits, int codec, 
     103                                                               char * server, int dir, char * name); 
     104 
    101105int     roar_vio_open_stdio    (struct roar_vio_calls * calls, FILE * dst); 
     106 
    102107FILE *  roar_vio_to_stdio      (struct roar_vio_calls * calls, int flags); 
    103108 
  • libroar/vio.c

    r1258 r1275  
    175175 return roar_vio_set_fh(calls, fh); 
    176176} 
     177 
     178int     roar_vio_simple_stream (struct roar_vio_calls * calls, int rate, int channels, int bits, int codec, 
     179                                                               char * server, int dir, char * name) { 
     180 int fh; 
     181 
     182 if ( calls == NULL ) 
     183  return -1; 
     184 
     185 if ( (fh = roar_simple_stream(rate, channels, bits, codec, server, dir, name)) == -1 ) 
     186  return -1; 
     187 
     188 return roar_vio_open_fh(calls, fh); 
     189} 
     190 
    177191 
    178192int     roar_vio_open_stdio    (struct roar_vio_calls * calls, FILE * dst) { 
Note: See TracChangeset for help on using the changeset viewer.