linphone-developers
[Top][All Lists]
Advanced

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

[Linphone-developers] No Sound


From: Jason Hennigar
Subject: [Linphone-developers] No Sound
Date: Fri, 09 Nov 2007 15:14:23 -0400
User-agent: Thunderbird 1.5.0.14pre (X11/20071023)

Hi All,

I have been having trouble getting the input audio to work with a console build of both Linphone 1.99 and 1.7.1 on a Blackfin 537 Stamp board running uClinux 2007R1.1-RC3 (2.6.19.3 kernel). The output audio works perfectly, and I see the input RTP packets being sent but with no audio data in the payload. The RTP Payload was somthing like F3F3F3F3F3F3F3F3F3F3F3F3F2F2F2F2F3F3F3F2F2F2F2F2...

The problem seems to be that ms_snd_card_set_capture() is not being called to specify whether the input should be from mic or line.

To fix this either uncomment the lines in sound_config_read() which checks and sets the audio levels and the input source or call ms_snd_card_set_capture() directly. Really uncommenting the input source check should be sufficient. A diff showing the lines to uncomment follows.

This might also be the problem with the input audio in the video call.

I also encountered a different situation using the unmodified 1.99 version where by changing the .linphonerc caused the output audio to switch from DAC1 (lime) to DAC2 (black). Removing the changes causes the audio to switch back to DAC1. The modification was to add the rec_lev, play_lev, ring_lev and source under [sound] in the same place as they are in the 1.6.0 version. Anyone know why this would happen?

Cheers!
Jason

===================================================================
--- linphonecore.c
+++ linphonecore.c      (working copy)
@@ -305,7 +305,7 @@

void sound_config_read(LinphoneCore *lc)
{
-       /*int tmp;*/
+       int tmp;
       const char *tmpbuf;
       const char *devid;
       const MSList *elem;
@@ -330,7 +330,7 @@
devid=lp_config_get_string(lc->config,"sound","capture_dev_id",NULL);
       linphone_core_set_capture_device(lc,devid);

-/*
+
       tmp=lp_config_get_int(lc->config,"sound","play_lev",80);
       linphone_core_set_play_level(lc,tmp);
       tmp=lp_config_get_int(lc->config,"sound","ring_lev",80);
@@ -339,7 +339,7 @@
       linphone_core_set_rec_level(lc,tmp);
       tmpbuf=lp_config_get_string(lc->config,"sound","source","m");
       linphone_core_set_sound_source(lc,tmpbuf[0]);
-*/
+

       tmpbuf=PACKAGE_SOUND_DIR "/" LOCAL_RING;
       tmpbuf=lp_config_get_string(lc->config,"sound","local_ring",tmpbuf);





reply via email to

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