Changeset 5957:603c1244304d in roaraudio


Ignore:
Timestamp:
01/03/14 06:23:40 (6 years ago)
Author:
phi
Branch:
default
Message:

Added support for setting a default device for roard at compile time.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r5955 r5957  
    77        * Implemented read-only support for RAUM files using uniraum, 
    88          support using libRAUM got disabled (See #233). 
     9        * Added support for setting a default device for roard at compile time. 
    910 
    1011v. 1.0beta10 - Tue Oct 15 2013 12:03 CEST 
  • configure

    r5955 r5957  
    8585 
    8686ROAR_DRIVER_DEFAULT='' 
     87ROAR_DRIVER_DEVICE='' 
    8788ROAR_DRIVER_CODEC='' 
    8889 
     
    142143   echo '--default-bits BITS         - Set default number of bits per sample for roarclients' 
    143144   echo '--default-driver DRIVER     - Set default driver for roard' 
     145   echo '--default-device DEVICE     - Set default device for roard. Should only be used with --default-driver' 
    144146   echo '--default-codec CODEC       - Set default codec used for the default driver' 
    145147   echo 
     
    266268  '--default-driver') 
    267269   ROAR_DRIVER_DEFAULT="$2" 
     270   shift; 
     271  ;; 
     272  '--default-device') 
     273   ROAR_DRIVER_DEVICE="$2" 
    268274   shift; 
    269275  ;; 
     
    534540 [ "$DEFAULT_BITS"        = '' ] || echo "#define ROAR_BITS_DEFAULT     $DEFAULT_BITS" 
    535541 [ "$ROAR_DRIVER_DEFAULT" = '' ] || echo "#define ROAR_DRIVER_DEFAULT   \"$ROAR_DRIVER_DEFAULT\"" 
     542 [ "$ROAR_DRIVER_DEVICE"  = '' ] || echo "#define ROAR_DRIVER_DEVICE    \"$ROAR_DRIVER_DEVICE\"" 
    536543 [ "$ROAR_DRIVER_CODEC"   = '' ] || echo "#define ROAR_DRIVER_CODEC     \"$ROAR_DRIVER_CODEC\"" 
    537544 echo 
  • roard/driver.c

    r5908 r5957  
    211211#endif 
    212212 
     213#ifdef ROAR_DRIVER_DEVICE 
     214 if ( device == NULL ) 
     215  device = ROAR_DRIVER_DEVICE; 
     216#endif 
     217 
    213218 ROAR_DBG("driver_openvio(*): searching for driver '%s'...", driver); 
    214219 
Note: See TracChangeset for help on using the changeset viewer.