Changeset 2372:39399989a0ee in roaraudio for libroarsndio


Ignore:
Timestamp:
08/15/09 16:38:39 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added a privarte function to convert sndio device names to names for roard

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroarsndio/libroarsndio.c

    r2371 r2372  
    3333#define ROAR_USE_OWN_SNDIO_HDL 
    3434#include "libroarsndio.h" 
     35 
     36static char * sndio_to_roar_names (char * name) { 
     37 
     38 if ( name == NULL ) 
     39  return NULL; 
     40 
     41 return name; 
     42} 
    3543 
    3644struct sio_hdl * sio_open(char * name, unsigned mode, int nbio_flag) { 
     
    7482  } 
    7583 } 
     84 
     85 name = sndio_to_roar_names(name); 
    7686 
    7787 if ( roar_simple_connect(&(hdl->con), name, "libroarsndio") == -1 ) { 
Note: See TracChangeset for help on using the changeset viewer.