diff options
author | Benny Prijono <bennylp@teluu.com> | 2008-04-23 16:07:37 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2008-04-23 16:07:37 +0000 |
commit | 1caf198b62ac211e7ed60b64dc9304e409f74a6e (patch) | |
tree | 402aaa1de93616f37d5469d0e6de60b5046ec021 /pjmedia/include | |
parent | 0e7719893889b970dde8c5bb8142dd2cadd42125 (diff) |
More ticket #497: added configuration to disable WSOLA and set default to disabled on WinCE and Symbian
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1941 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjmedia/include')
-rw-r--r-- | pjmedia/include/pjmedia/config.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pjmedia/include/pjmedia/config.h b/pjmedia/include/pjmedia/config.h index 38dd872c..240432eb 100644 --- a/pjmedia/include/pjmedia/config.h +++ b/pjmedia/include/pjmedia/config.h @@ -106,6 +106,42 @@ #endif +/* + * Types of WSOLA backend algorithm. + */ + +/** + * This denotes implementation of WSOLA using null algorithm. Expansion + * will generate zero frames, and compression will just discard some + * samples from the input. + * + * This type of implementation may be used as it requires the least + * processing power. + */ +#define PJMEDIA_WSOLA_IMP_NULL 0 + +/** + * This denotes implementation of WSOLA using fixed or floating point WSOLA + * algorithm. This implementation provides the best quality of the result, + * at the expense of one frame delay and intensive processing power + * requirement. + */ +#define PJMEDIA_WSOLA_IMP_WSOLA 1 + + +/** + * Specify type of Waveform based Similarity Overlap and Add (WSOLA) backend + * implementation to be used. WSOLA is an algorithm to expand and/or compress + * audio frames without changing the pitch, and used by the delaybuf and as PLC + * backend algorithm. + * + * Default is PJMEDIA_WSOLA_IMP_WSOLA + */ +#ifndef PJMEDIA_WSOLA_IMP +# define PJMEDIA_WSOLA_IMP PJMEDIA_WSOLA_IMP_WSOLA +#endif + + /** * Specify number of sound buffers. Larger number is better for sound * stability and to accommodate sound devices that are unable to send frames |