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-10-21 18:52:05 +0400
committerjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>2007-10-21 18:52:05 +0400
commit9314bad16920056ee453b0e91befbd02cbef10a1 (patch)
treeda513327050e9e95e1621946eec5ffda6e5b9211 /include
parentd3537eafe92cea01f4c96937681f395659080e34 (diff)
Re-arranged the wideband mode so that programs using narrowband only and
linking statically don't carry the wideband stuff. git-svn-id: http://svn.xiph.org/trunk/speex@14028 0101bb08-14d6-0310-b084-bc0e0c8e3800
Diffstat (limited to 'include')
-rw-r--r--include/speex/speex.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/speex/speex.h b/include/speex/speex.h
index a41ac0c..5620f03 100644
--- a/include/speex/speex.h
+++ b/include/speex/speex.h
@@ -421,6 +421,9 @@ extern const SpeexMode * const speex_mode_list[SPEEX_NB_MODES];
/** Obtain one of the modes available */
const SpeexMode * speex_lib_get_mode (int mode);
+/* We actually override the fucntion in the narrowband case so that we can avoid linking in the wideband stuff */
+#define speex_lib_get_mode(mode) ((mode)==SPEEX_MODEID_NB ? &speex_nb_mode : speex_lib_get_mode (mode))
+
#ifdef __cplusplus
}
#endif