Changeset 1062:deda1a0a6776 in roaraudio for configure


Ignore:
Timestamp:
12/24/08 15:25:11 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added support to set default rate/channels/bits, make ROAR_OUTPUT_BUFFER_SAMPLES depend on default rate and init $XMMS_INST_DIR in configure script

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    r1057 r1062  
    3636 
    3737AO_INST_DIR='' 
     38XMMS_INST_DIR='' 
     39 
     40DEFAULT_RATE='' 
     41DEFAULT_CHANNELS='' 
     42DEFAULT_BITS='' 
    3843 
    3944echo -n "checking for C compiler... " 
     
    8691   echo '--prefix-inc DIR' 
    8792   echo '--prefix-man DIR' 
     93   echo '--default-rate RATE' 
     94   echo '--default-channels CHANNELS' 
     95   echo '--default-bits BITS' 
    8896   exit 0; 
    8997  ;; 
     
    130138  '--xmms-install-dir') 
    131139   XMMS_INST_DIR="$2" 
     140   shift; 
     141  ;; 
     142  '--default-rate') 
     143   DEFAULT_RATE="$2" 
     144   shift; 
     145  ;; 
     146  '--default-channels') 
     147   DEFAULT_CHANNELS="$2" 
     148   shift; 
     149  ;; 
     150  '--default-bits') 
     151   DEFAULT_BITS="$2" 
    132152   shift; 
    133153  ;; 
     
    323343 echo '/* uname: ' $(uname -a) '*/' 
    324344 echo '/* Date : ' $(date)  '*/' 
     345 echo 
     346 [ "$DEFAULT_RATE"     = '' ] || echo "#define ROAR_RATE_DEFAULT     $DEFAULT_RATE" 
     347 [ "$DEFAULT_CHANNELS" = '' ] || echo "#define ROAR_CHANNELS_DEFAULT $DEFAULT_CHANNELS" 
     348 [ "$DEFAULT_BITS"     = '' ] || echo "#define ROAR_BITS_DEFAULT     $DEFAULT_BITS" 
    325349 echo 
    326350} >&3 
Note: See TracChangeset for help on using the changeset viewer.