Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xiph/speex.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>2007-11-18 07:57:55 +0300
committerjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>2007-11-18 07:57:55 +0300
commitf39618b8d4e20453b9ac60d9c6c334e4fbe774dc (patch)
tree51f430227ccfb5b55a33e980259d1c2a51ddb520 /libspeex/speex_callbacks.c
parent9291d3aa212bba668d0d7ec508febe017203de6f (diff)
New DISABLE_VBR and DISABLE_FLOAT_API switches can together remove every single
float operation out of libspeex. git-svn-id: http://svn.xiph.org/trunk/speex@14181 0101bb08-14d6-0310-b084-bc0e0c8e3800
Diffstat (limited to 'libspeex/speex_callbacks.c')
-rw-r--r--libspeex/speex_callbacks.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libspeex/speex_callbacks.c b/libspeex/speex_callbacks.c
index b884775..d1158b2 100644
--- a/libspeex/speex_callbacks.c
+++ b/libspeex/speex_callbacks.c
@@ -96,6 +96,7 @@ int speex_std_high_mode_request_handler(SpeexBits *bits, void *state, void *data
return 0;
}
+#ifndef DISABLE_VBR
int speex_std_vbr_request_handler(SpeexBits *bits, void *state, void *data)
{
spx_int32_t vbr;
@@ -103,6 +104,7 @@ int speex_std_vbr_request_handler(SpeexBits *bits, void *state, void *data)
speex_encoder_ctl(data, SPEEX_SET_VBR, &vbr);
return 0;
}
+#endif /* #ifndef DISABLE_VBR */
int speex_std_enh_request_handler(SpeexBits *bits, void *state, void *data)
{
@@ -112,6 +114,7 @@ int speex_std_enh_request_handler(SpeexBits *bits, void *state, void *data)
return 0;
}
+#ifndef DISABLE_VBR
int speex_std_vbr_quality_request_handler(SpeexBits *bits, void *state, void *data)
{
float qual;
@@ -119,7 +122,7 @@ int speex_std_vbr_quality_request_handler(SpeexBits *bits, void *state, void *da
speex_encoder_ctl(data, SPEEX_SET_VBR_QUALITY, &qual);
return 0;
}
-
+#endif /* #ifndef DISABLE_VBR */
int speex_std_char_handler(SpeexBits *bits, void *state, void *data)
{