linphone-developers
[Top][All Lists]
Advanced

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

[Linphone-developers] (no subject)


From: Laurent Brard
Subject: [Linphone-developers] (no subject)
Date: Fri, 20 May 2011 17:21:36 +0200

Hello,

 

Using Linphone-3.4.3, I had to add the following line to have audio working on my embedded system:

 

linphone-3.4.3/mediastreamer2/src/alsa.c (line 142):

 

/* Set number of periods. Periods used to be called fragments. */

            exact_uvalue=periods;

            dir=0;

            if (snd_pcm_hw_params_set_periods_near(pcm_handle, hwparams, &exact_uvalue, &dir) < 0) {

                        ms_warning("alsa_set_params: Error setting periods.");

                        return -1;

            }

            ms_warning("alsa_set_params: period:%d Using %d", periods, exact_uvalue);

            if (dir != 0) {

                        ms_warning("alsa_set_params: The number of periods %d is not supported by your hardware.\n "

                        "==> Using %d instead.", periods, exact_uvalue);

            }

+          periods=exact_ulvalue;

 

 

Laurent Brard

 


reply via email to

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