Changeset 1493 for pjproject/trunk/pjmedia/src/pjmedia/resample_resample.c
- Timestamp:
- Oct 12, 2007 5:24:32 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/resample_resample.c
r1266 r1493 26 26 27 27 28 #if defined(PJMEDIA_HAS_LIBRESAMPLE) && PJMEDIA_HAS_LIBRESAMPLE != 028 #if PJMEDIA_RESAMPLE_IMP==PJMEDIA_RESAMPLE_LIBRESAMPLE 29 29 30 30 #include <third_party/resample/include/resamplesubs.h> … … 216 216 217 217 218 #el se /* PJMEDIA_HAS_LIBRESAMPLE */218 #elif PJMEDIA_RESAMPLE_IMP==PJMEDIA_RESAMPLE_NONE 219 219 220 220 /* 221 221 * This is the configuration when sample rate conversion is disabled. 222 222 */ 223 struct pjmedia_resample224 {225 unsigned samples_per_frame;226 };227 228 223 PJ_DEF(pj_status_t) pjmedia_resample_create( pj_pool_t *pool, 229 224 pj_bool_t high_quality, … … 235 230 pjmedia_resample **p_resample) 236 231 { 237 pjmedia_resample *resample; 238 239 PJ_ASSERT_RETURN(rate_in == rate_out, PJ_EINVALIDOP); 240 241 PJ_UNUSED_ARG(high_quality); 242 PJ_UNUSED_ARG(large_filter); 243 PJ_UNUSED_ARG(channel_count); 244 PJ_UNUSED_ARG(rate_in); 245 PJ_UNUSED_ARG(rate_out); 246 247 resample = PJ_POOL_ZALLOC_T(pool, pjmedia_resample); 248 resample->samples_per_frame = samples_per_frame; 249 250 *p_resample = resample; 251 252 return PJ_SUCCESS; 232 PJ_UNUSED_ARG(pool); 233 PJ_UNUSED_ARG(high_quality); 234 PJ_UNUSED_ARG(large_filter); 235 PJ_UNUSED_ARG(channel_count); 236 PJ_UNUSED_ARG(rate_in); 237 PJ_UNUSED_ARG(rate_out); 238 PJ_UNUSED_ARG(samples_per_frame); 239 PJ_UNUSED_ARG(p_resample); 240 241 return PJ_EINVALIDOP; 253 242 } 254 243 … … 257 246 pj_int16_t *output ) 258 247 { 259 pjmedia_copy_samples(output, input, resample->samples_per_frame); 248 PJ_UNUSED_ARG(resample); 249 PJ_UNUSED_ARG(input); 250 PJ_UNUSED_ARG(output); 260 251 } 261 252 262 253 PJ_DEF(unsigned) pjmedia_resample_get_input_size(pjmedia_resample *resample) 263 254 { 264 return resample->samples_per_frame; 255 PJ_UNUSED_ARG(resample); 256 return 0; 265 257 } 266 258 267 259 PJ_DEF(void) pjmedia_resample_destroy(pjmedia_resample *resample) 268 260 { 269 270 } 271 272 #endif /* PJMEDIA_ HAS_LIBRESAMPLE*/273 261 PJ_UNUSED_ARG(resample); 262 } 263 264 #endif /* PJMEDIA_RESAMPLE_IMP */ 265
Note: See TracChangeset
for help on using the changeset viewer.