[SFLphone] hardcoded samplerate for pulseaudio
Peter Kornatowski
pkorn at gmx.net
Thu Oct 1 07:05:58 EDT 2009
Hi,
I use sflphone as my sip-client with pulseaudio. In pulseaudio I load two bluetooth headsets and also use the module-combine. So the voip-sound is routed to both headsets, but just one of them is the source. This all works fine, but with very high cpu load.
So I started to test a little and found out that the problem is the resampling done in pulseaudio between sflphone which connects with 44100hz and the combiner which is loaded with 8000hz (because bluetooth headsets load with 8000hz). I also tried it with just one headset without the module-combine, but the cpu load was still almost as high as before.
Then I looked into the sflphone sourcecode and found the samplerate hardcoded for pulseaudio (in sflphone-common/src/audio/audiostream.cpp). Changing the value to 8000 and recompiling lowered the cpu load to 1/5th (pulseaudio said that it doesn't have to resample), but the sound was completely incomprehensible.
Does anyone have some ideas? Do I have to change something more in the sourcecode? Or is it just not possible to change the sample rate so easy (and therefore it is hardcoded)?
Thanks and greetings, Peter
--
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
More information about the SFLphone
mailing list