Audio distortion in Linux

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We made further tests regarding input >= 32000 Hz under Linux.

The audiodistortion depends on the used resampling: parameter:

if PJMEDIA_RESAMPLE_IMP set to:

PJMEDIA_RESAMPLE_LIBRESAMPLE  (default)  -> signal distorted
PJMEDIA_RESAMPLE_LIBSAMPLERATE           -> signal distorted
PJMEDIA_RESAMPLE_SPEEX                              -> signal OK

libsamplerate (a.k.a Secret Rabbit Code) had to be activated first 
(\pjproject\third_party\build\samplerate\README.txt)
...and the speex resample as well:

- change in PJMEDIA makefile in line 57 (add last module)
        resample_resample.o resample_libsamplerate.o resample_speex.o\

- in file resample_speex.c change type casting as follows (compiler errors):
        speex_resampler_process_interleaved_int(resample->state,
         (const spx_int16_t *)input,(spx_uint32_t *)&in_length,
         (spx_int16_t *)output,(spx_uint32_t *) &out_length);

- und surely don't forget to enable in config_site.h:
    #define PJMEDIA_RESAMPLE_IMP PJMEDIA_RESAMPLE_SPEEX


As speex resample is rather experimental, we do not know what that means
and if the param "quality" which we set to 9 is relevant here. But there is
definitely something wrong the way pjsip embeds the libresample routines.

regards,
Thomas Kluge 




[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux