Changeset 924:7f4183d013fa in roaraudio for roard


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

Location:
roard
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • roard/driver.c

    r919 r924  
    3333 { "raw",  "RAW PCM driver", "/some/file", driver_raw_open, driver_raw_close, driver_roar_pause, driver_raw_write, driver_raw_read, driver_raw_flush, NULL}, 
    3434#if defined(ROAR_HAVE_OSS_BSD) || defined(ROAR_HAVE_OSS) 
     35#ifndef ROAR_DEFAULT_OSS_DEV 
     36#define ROAR_DEFAULT_OSS_DEV "no default device" 
     37#endif 
    3538 { "oss", "Open Sound System", ROAR_DEFAULT_OSS_DEV, NULL, driver_oss_close, NULL, NULL, NULL, NULL, driver_oss_open}, 
    3639#endif 
  • 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.