Changeset 1290:a2d5f830e560 in roaraudio


Ignore:
Timestamp:
03/12/09 02:02:37 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added call to fh -> vio for sockets, needed for win32 in future

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • include/libroar/vio.h

    r1284 r1290  
    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); 
     101int     roar_vio_open_fh_socket(struct roar_vio_calls * calls, int fh); 
    101102 
    102103int     roar_vio_simple_stream (struct roar_vio_calls * calls, int rate, int channels, int bits, int codec, 
  • libroar/vio.c

    r1284 r1290  
    176176} 
    177177 
     178int     roar_vio_open_fh_socket(struct roar_vio_calls * calls, int fh) { 
     179 if ( calls == NULL ) 
     180  return -1; 
     181 
     182 return roar_vio_open_fh(calls, fh); 
     183} 
     184 
    178185int     roar_vio_simple_stream (struct roar_vio_calls * calls, int rate, int channels, int bits, int codec, 
    179186                                                               char * server, int dir, char * name) { 
     
    186193  return -1; 
    187194 
    188  return roar_vio_open_fh(calls, fh); 
     195 return roar_vio_open_fh_socket(calls, fh); 
    189196} 
    190197 
Note: See TracChangeset for help on using the changeset viewer.