Changeset 1104:bfe959698403 in roaraudio


Ignore:
Timestamp:
01/11/09 02:25:42 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

disable options needing libm

Location:
libroardsp
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • libroardsp/filter.c

    r1100 r1104  
    3737 {ROARDSP_FILTER_ADD, "Add", roardsp_add_init, roardsp_amp_uninit, roardsp_amp_ctl, { 
    3838           {NULL, NULL, NULL},{NULL, NULL, NULL},{roardsp_add_calc16, NULL, NULL},{NULL, NULL, NULL},{NULL, NULL, NULL}}}, 
     39#ifdef ROAR_HAVE_LIBM 
    3940 {ROARDSP_FILTER_LOWP, "Lowpass", roardsp_lowp_init, roardsp_lowp_uninit, roardsp_lowp_ctl, { 
    4041           {NULL, NULL, NULL},{NULL, NULL, NULL},{roardsp_lowp_calc16, NULL, NULL},{NULL, NULL, NULL},{NULL, NULL, NULL}}}, 
    4142 {ROARDSP_FILTER_HIGHP, "Highpass", roardsp_highp_init, roardsp_highp_uninit, roardsp_highp_ctl, { 
    4243           {NULL, NULL, NULL},{NULL, NULL, NULL},{roardsp_highp_calc16, NULL, NULL},{NULL, NULL, NULL},{NULL, NULL, NULL}}}, 
     44#endif 
    4345 {ROARDSP_FILTER_QUANTIFY, "Quantifier", roardsp_quantify_init, NULL, roardsp_quantify_ctl, { 
    4446           {NULL, NULL, NULL},{NULL, NULL, NULL},{roardsp_quantify_calc16, NULL, NULL},{NULL, NULL, NULL},{NULL, NULL, NULL}}}, 
  • libroardsp/filter_downmix.c

    r1020 r1104  
    6262    } 
    6363   break; 
     64#ifdef ROAR_HAVE_LIBM 
    6465  case ROARDSP_DOWNMIX_RMS: 
    6566    for (i = 0; i < samples; i += 2) { 
     
    7980    } 
    8081   break; 
     82#endif 
    8183  default: 
    8284   ROAR_DBG("roardsp_downmix_calc162(*) = -1 // unknown mode"); 
  • libroardsp/filter_highp.c

    r883 r1104  
    2424 
    2525#include "libroardsp.h" 
     26 
     27#ifdef ROAR_HAVE_LIBM 
    2628 
    2729int roardsp_highp_init  (struct roardsp_filter * filter, struct roar_stream * stream, int id) { 
     
    109111} 
    110112 
     113#endif 
     114 
    111115//ll 
  • libroardsp/filter_lowp.c

    r885 r1104  
    2424 
    2525#include "libroardsp.h" 
     26 
     27#ifdef ROAR_HAVE_LIBM 
    2628 
    2729int roardsp_lowp_init  (struct roardsp_filter * filter, struct roar_stream * stream, int id) { 
     
    105107} 
    106108 
     109#endif 
     110 
    107111//ll 
  • libroardsp/midi.c

    r687 r1104  
    107107 
    108108int roar_midi_gen_tone (struct roar_note_octave * note, int16_t * samples, float t, int rate, int channels, int type, void * opts) { 
     109#ifdef ROAR_HAVE_LIBM 
    109110 int i, c; 
    110111 float ct; 
     
    137138 
    138139 return 0; 
     140#else 
     141 return -1; 
     142#endif 
    139143} 
    140144 
Note: See TracChangeset for help on using the changeset viewer.