diff options
author | Jean-Marc Valin <Jean-Marc.Valin@csiro.au> | 2008-06-05 08:11:52 +0400 |
---|---|---|
committer | Jean-Marc Valin <Jean-Marc.Valin@csiro.au> | 2008-06-05 08:11:52 +0400 |
commit | 412a60ec3d316b4865e96f75cc1dca1b46ecba9a (patch) | |
tree | fa868821835575936429cd0a44c1cda433b382c4 | |
parent | 3d5c97908a77adc1d052069e4b53598b5aef96ec (diff) |
DecorrState -> SpeexDecorrState
-rw-r--r-- | include/speex/speex_echo.h | 10 | ||||
-rw-r--r-- | libspeex/scal.c | 10 |
2 files changed, 10 insertions, 10 deletions
diff --git a/include/speex/speex_echo.h b/include/speex/speex_echo.h index fec17e4..53bcd28 100644 --- a/include/speex/speex_echo.h +++ b/include/speex/speex_echo.h @@ -133,9 +133,9 @@ int speex_echo_ctl(SpeexEchoState *st, int request, void *ptr); -struct DecorrState_; +struct SpeexDecorrState_; -typedef struct DecorrState_ DecorrState; +typedef struct SpeexDecorrState_ SpeexDecorrState; /** Create a state for the channel decorrelation algorithm @@ -144,7 +144,7 @@ typedef struct DecorrState_ DecorrState; * @param channels Number of channels (it's a bit pointless if you don't have at least 2) * @param frame_size Size of the frame to process at ones (counting samples *per* channel) */ -DecorrState *speex_decorrelate_new(int rate, int channels, int frame_size); +SpeexDecorrState *speex_decorrelate_new(int rate, int channels, int frame_size); /** Remove correlation between the channels by modifying the phase and possibly adding noise in a way that is not (or little) perceptible. @@ -153,12 +153,12 @@ DecorrState *speex_decorrelate_new(int rate, int channels, int frame_size); * @param out Result of the decorrelation (out *may* alias in) * @param strength How much alteration of the audio to apply from 0 to 100. */ -void speex_decorrelate(DecorrState *st, const spx_int16_t *in, spx_int16_t *out, int strength); +void speex_decorrelate(SpeexDecorrState *st, const spx_int16_t *in, spx_int16_t *out, int strength); /** Destroy a Decorrelation state * @param st State to destroy */ -void speex_decorrelate_destroy(DecorrState *st); +void speex_decorrelate_destroy(SpeexDecorrState *st); #ifdef __cplusplus diff --git a/libspeex/scal.c b/libspeex/scal.c index 4d5dc1a..c6abfd2 100644 --- a/libspeex/scal.c +++ b/libspeex/scal.c @@ -54,7 +54,7 @@ The algorithm implemented here is described in: #define ALLPASS_ORDER 20 -struct DecorrState_ { +struct SpeexDecorrState_ { int rate; int channels; int frame_size; @@ -78,10 +78,10 @@ struct DecorrState_ { -EXPORT DecorrState *speex_decorrelate_new(int rate, int channels, int frame_size) +EXPORT SpeexDecorrState *speex_decorrelate_new(int rate, int channels, int frame_size) { int i, ch; - DecorrState *st = speex_alloc(sizeof(DecorrState)); + SpeexDecorrState *st = speex_alloc(sizeof(SpeexDecorrState)); st->rate = rate; st->channels = channels; st->frame_size = frame_size; @@ -134,7 +134,7 @@ static unsigned int irand(int *seed) } -EXPORT void speex_decorrelate(DecorrState *st, const spx_int16_t *in, spx_int16_t *out, int strength) +EXPORT void speex_decorrelate(SpeexDecorrState *st, const spx_int16_t *in, spx_int16_t *out, int strength) { int ch; float amount; @@ -271,7 +271,7 @@ EXPORT void speex_decorrelate(DecorrState *st, const spx_int16_t *in, spx_int16_ } } -EXPORT void speex_decorrelate_destroy(DecorrState *st) +EXPORT void speex_decorrelate_destroy(SpeexDecorrState *st) { #ifdef VORBIS_PSYCHO vorbis_psy_destroy(st->psy); |