Changeset 924:7f4183d013fa in roaraudio for roard/driver_oss.c


Ignore:
Timestamp:
12/07/08 12:35:54 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

fixed handling of case the system has OSS support but we found no OSS device, needed for FreeBSD jails

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/driver_oss.c

    r919 r924  
    3232 int fh; 
    3333 
     34#ifdef ROAR_DEFAULT_OSS_DEV 
    3435 if ( device == NULL ) 
    3536  device = ROAR_DEFAULT_OSS_DEV; 
     37#endif 
     38 
     39 if ( device == NULL ) { 
     40  ROAR_ERR("driver_oss_open(*): no default device found, you need to specify one manuelly"); 
     41  return -1; 
     42 } 
    3643 
    3744 roar_vio_init_calls(inst); 
Note: See TracChangeset for help on using the changeset viewer.