Hi all, this patch addresses the usage of Windows-specific types (namely __int16) in the Speex resampler. The current version causes problems when trying to cross-compile the Speex resampler for Windows under Linux. The patch replaces the types with the native Speex types which have proper typdefs for the supported platforms. Regards Tobias
--- pjmedia/src/pjmedia/resample_speex.c 2016-11-25 13:39:34.901344046 +0100 +++ pjmedia/src/pjmedia/resample_speex.c 2016-10-21 16:46:19.403554435 +0200 @@ -95,8 +95,8 @@ out_length = resample->out_samples_per_frame; speex_resampler_process_interleaved_int(resample->state, - (const __int16 *)input, &in_length, - (__int16 *)output, &out_length); + (const spx_int16_t *)input, &in_length, + (spx_int16_t *)output, &out_length); pj_assert(in_length == resample->in_samples_per_frame); pj_assert(out_length == resample->out_samples_per_frame);
_______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip@xxxxxxxxxxxxxxx http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org