~ubuntu-branches/ubuntu/saucy/speex/saucy-proposed

« back to all changes in this revision

Viewing changes to libspeex/preprocess.c

  • Committer: Bazaar Package Importer
  • Author(s): Ron Lee
  • Date: 2008-06-04 03:48:19 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20080604034819-jc7eevhn9behha7w
Tags: 1.2~beta4-2
Move the extra sse libs to /usr/lib/sse2.  That is a bit more elitist than
we need to be, but the linker already looks there without adding yet another
path permutation, and in practice most people who really care about how long
this is going to take won't find that sets the bar too high for them at all.

Actually, it's apparently ldconfig rather than the linker that is missing
this path, but this will still do for now while people figure out if or when
that should be fixed too.

Show diffs side-by-side

added added

removed removed

Lines of Context:
392
392
}
393
393
 
394
394
#endif
395
 
SpeexPreprocessState *speex_preprocess_state_init(int frame_size, int sampling_rate)
 
395
EXPORT SpeexPreprocessState *speex_preprocess_state_init(int frame_size, int sampling_rate)
396
396
{
397
397
   int i;
398
398
   int N, N3, N4, M;
530
530
   return st;
531
531
}
532
532
 
533
 
void speex_preprocess_state_destroy(SpeexPreprocessState *st)
 
533
EXPORT void speex_preprocess_state_destroy(SpeexPreprocessState *st)
534
534
{
535
535
   speex_free(st->frame);
536
536
   speex_free(st->ft);
718
718
 
719
719
void speex_echo_get_residual(SpeexEchoState *st, spx_word32_t *Yout, int len);
720
720
 
721
 
int speex_preprocess(SpeexPreprocessState *st, spx_int16_t *x, spx_int32_t *echo)
 
721
EXPORT int speex_preprocess(SpeexPreprocessState *st, spx_int16_t *x, spx_int32_t *echo)
722
722
{
723
723
   return speex_preprocess_run(st, x);
724
724
}
725
725
 
726
 
int speex_preprocess_run(SpeexPreprocessState *st, spx_int16_t *x)
 
726
EXPORT int speex_preprocess_run(SpeexPreprocessState *st, spx_int16_t *x)
727
727
{
728
728
   int i;
729
729
   int M;
1010
1010
   }
1011
1011
}
1012
1012
 
1013
 
void speex_preprocess_estimate_update(SpeexPreprocessState *st, spx_int16_t *x)
 
1013
EXPORT void speex_preprocess_estimate_update(SpeexPreprocessState *st, spx_int16_t *x)
1014
1014
{
1015
1015
   int i;
1016
1016
   int N = st->ps_size;
1045
1045
}
1046
1046
 
1047
1047
 
1048
 
int speex_preprocess_ctl(SpeexPreprocessState *state, int request, void *ptr)
 
1048
EXPORT int speex_preprocess_ctl(SpeexPreprocessState *state, int request, void *ptr)
1049
1049
{
1050
1050
   int i;
1051
1051
   SpeexPreprocessState *st;
1194
1194
   case SPEEX_PREPROCESS_GET_PROB:
1195
1195
      (*(spx_int32_t*)ptr) = MULT16_16_Q15(st->speech_prob, 100);
1196
1196
      break;
1197
 
#ifndef DISABLE_FLOAT_API
 
1197
#ifndef FIXED_POINT
1198
1198
   case SPEEX_PREPROCESS_SET_AGC_TARGET:
1199
1199
      st->agc_level = (*(spx_int32_t*)ptr);
1200
1200
      if (st->agc_level<1)
1205
1205
   case SPEEX_PREPROCESS_GET_AGC_TARGET:
1206
1206
      (*(spx_int32_t*)ptr) = st->agc_level;
1207
1207
      break;
1208
 
#endif /* #ifndef DISABLE_FLOAT_API */
 
1208
#endif
1209
1209
   default:
1210
1210
      speex_warning_int("Unknown speex_preprocess_ctl request: ", request);
1211
1211
      return -1;