- Timestamp:
- Sep 15, 2008 11:16:57 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/wsola.c
r2145 r2277 32 32 33 33 34 #if (PJMEDIA_WSOLA_IMP==PJMEDIA_WSOLA_IMP_WSOLA) || \35 (PJMEDIA_WSOLA_IMP==PJMEDIA_WSOLA_IMP_WSOLA_LITE)36 37 /*38 * WSOLA implementation using WSOLA39 */40 41 /* Buffer size including history, in frames */42 #define FRAME_CNT 643 44 /* Number of history frames in buffer */45 #define HIST_CNT 1.546 47 /* Template size, in msec */48 #define TEMPLATE_PTIME 549 50 /* Hanning window size, in msec */51 #define HANNING_PTIME 552 53 /* Number of frames in erase buffer */54 #define ERASE_CNT ((unsigned)3)55 56 /* Minimum distance from template for find_pitch() of expansion, in frames */57 #define EXP_MIN_DIST 0.558 59 /* Maximum distance from template for find_pitch() of expansion, in frames */60 #define EXP_MAX_DIST HIST_CNT61 62 63 34 #if 0 64 35 # define TRACE_(x) PJ_LOG(4,x) … … 72 43 # define CHECK_(x) 73 44 #endif 45 46 47 #if (PJMEDIA_WSOLA_IMP==PJMEDIA_WSOLA_IMP_WSOLA) || \ 48 (PJMEDIA_WSOLA_IMP==PJMEDIA_WSOLA_IMP_WSOLA_LITE) 49 50 /* 51 * WSOLA implementation using WSOLA 52 */ 53 54 /* Buffer size including history, in frames */ 55 #define FRAME_CNT 6 56 57 /* Number of history frames in buffer */ 58 #define HIST_CNT 1.5 59 60 /* Template size, in msec */ 61 #define TEMPLATE_PTIME 5 62 63 /* Hanning window size, in msec */ 64 #define HANNING_PTIME 5 65 66 /* Number of frames in erase buffer */ 67 #define ERASE_CNT ((unsigned)3) 68 69 /* Minimum distance from template for find_pitch() of expansion, in frames */ 70 #define EXP_MIN_DIST 0.5 71 72 /* Maximum distance from template for find_pitch() of expansion, in frames */ 73 #define EXP_MAX_DIST HIST_CNT 74 74 75 75 76 /* Buffer content:
Note: See TracChangeset
for help on using the changeset viewer.