On Fri 22.01.16 10:26, Gautier Pelloux-Prayer wrote:
> Hi,
>
> Could you try a master version please? mfortini on Github submitted a patch
> for this, which was integrated 08th January:
>
> a4ad76a 2016-01-08 18:25:32 +0100 Matteo Fortini pulseaudio.c: fix
> output stuttering due to underflows
>
> Regards,
>
> Gautier Pelloux-Prayer
> Software Engineer @ Belledonne Communications
>
Hi Gautier,
thank you! Now the playback is much better. But there are still underflows, when
trying multiple times in a sequence.
I suggest to read a bigger chunk at start. See attached patch!
Regards,
Christian.
diff --git a/src/audiofilters/msfileplayer.c b/src/audiofilters/msfileplayer.c
index 0bcdd32..15213c8 100644
--- a/src/audiofilters/msfileplayer.c
+++ b/src/audiofilters/msfileplayer.c
@@ -279,6 +279,8 @@ static void player_process(MSFilter *f){
/*send an even number of samples each tick. At 22050Hz the number of samples per 10 ms chunk is odd.
Odd size buffer of samples cause troubles to alsa. Fixing in alsa is difficult, so workaround here.
*/
+ if (d->count==0)
+ nsamples *= 3;
if (nsamples & 0x1 ) { //odd number of samples
if (d->count & 0x1 )
nsamples++;
_______________________________________________
Linphone-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/linphone-users