linphone-developers
[Top][All Lists]
Advanced

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

Re: [Linphone-developers] Reduced mic sample rate increases audio playba


From: Balder Mørk
Subject: Re: [Linphone-developers] Reduced mic sample rate increases audio playback delay
Date: Fri, 23 Jan 2015 12:40:14 +0100
User-agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0

Thank you, I came to the same conclusion. Turns out this exact device works best with 48kHz output and 8kHz input, the reported latency at 48kHz is 480ms while it's 1680ms (!) at 8kHz. I extended the SoundDeviceDesciption struct with an extra recording parameter and used that new parameter when setting up in androidsound.cpp. I didn't do anything to handle it in the OpenSLES implementation yet, but that isn't used on my problematic device anyway.


Balder

Den 23.01.2015 11:34, skrev Johan Pascal:
Hi Balder,
yes using audiofilters/device.c table to set specifics parameter for your sound card is the correct way.

Unfortunately it looks like the hardware you use have a hard time having both recording and playback using 8kHz sampling rate but there is no easy way in Linphone to set different sampling rate for recording and playback.

johan


On 22/01/15 10:43, Balder Mørk wrote:
I'm running Linphone on an Android device which will only record sound
in 8000Hz. To make the microphone work, I added the following line to
mediastreamer2/src/audiofilters/devices.c:

{ "2N", "IndoorTouch", "omap3", 0, 0, 8000 },

This made the microphone work, but it has the side effect of increasing
audio playback delay from an almost-acceptable 0.8 seconds to almost 2
seconds (tested using mobile phone -> sip). This is very annoying during
video calls, as the video has no noticeable delay. Am I using the right
approach, or is there a better way to override audio recording settings
without affecting playback?


Balder

_______________________________________________
Linphone-developers mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone-developers

_______________________________________________
Linphone-developers mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone-developers




reply via email to

[Prev in Thread] Current Thread [Next in Thread]