Changeset 2371:99f2b7cc707e in roaraudio


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

test for $AUDIODEVICE and $MIDIDEVICE as stated in the manpage

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroarsndio/libroarsndio.c

    r2360 r2371  
    6767 } 
    6868 
     69 if ( name == NULL ) { 
     70  if ( is_midi ) { 
     71   name = getenv("MIDIDEVICE"); 
     72  } else { 
     73   name = getenv("AUDIODEVICE"); 
     74  } 
     75 } 
     76 
    6977 if ( roar_simple_connect(&(hdl->con), name, "libroarsndio") == -1 ) { 
    7078  free(hdl); 
Note: See TracChangeset for help on using the changeset viewer.