Changeset 1830:3a678ce28438 in roaraudio


Ignore:
Timestamp:
05/23/09 01:35:05 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added some default devices

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/driver_dmx.c

    r1829 r1830  
    2727int driver_dmx_open_vio  (struct roar_vio_calls * inst, char * device, struct roar_audio_info * info, int fh) { 
    2828 
    29  if ( device == NULL ) { 
    30   return -1; 
    31  } 
     29 if ( fh == -1 ) { 
     30  if ( device == NULL ) 
     31   device = getenv("DMX"); 
    3232 
    33  if ( fh == -1 ) { 
     33  if ( device == NULL ) 
     34   device = "/dev/dmx"; 
     35 
    3436  if ( roar_vio_open_file(inst, device, O_WRONLY, 0644) == -1 ) 
    3537   return -1; 
Note: See TracChangeset for help on using the changeset viewer.