linphone-users
[Top][All Lists]
Advanced

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

Re: [Linphone-users] ../coreapi/.libs/liblinphone.so: undefined referenc


From: VoVaN
Subject: Re: [Linphone-users] ../coreapi/.libs/liblinphone.so: undefined reference to `ms_alsa_card_new_custom'
Date: Sat, 15 Dec 2007 10:40:52 +0100
User-agent: KMail/1.9.6 (enterprise 0.20071204.744707)

Sorry, I forgot the patch I mentioned in my previous mail, so here it is:

diff -Naur linphone-2.0.1.orig/coreapi/linphonecore.c 
linphone-2.0.1/coreapi/linphonecore.c
--- linphone-2.0.1.orig/coreapi/linphonecore.c  2007-11-29 22:12:21.000000000 
+0100
+++ linphone-2.0.1/coreapi/linphonecore.c       2007-12-15 10:13:04.000000000 
+0100
@@ -313,12 +313,6 @@
        int ndev;
        int i;

-       /*alsadev let the user use custom alsa device within linphone*/
-       devid=lp_config_get_string(lc->config,"sound","alsadev",NULL);
-       if (devid){
-               MSSndCard *card=ms_alsa_card_new_custom(devid,devid);
-               ms_snd_card_manager_add_card(ms_snd_card_manager_get(),card);
-       }
        /* retrieve all sound devices */
        elem=ms_snd_card_manager_get_list(ms_snd_card_manager_get());
        ndev=ms_list_size(elem);
diff -Naur 
linphone-2.0.1.orig/mediastreamer2/include/mediastreamer2/mssndcard.h 
linphone-2.0.1/mediastreamer2/include/mediastreamer2/mssndcard.h
--- linphone-2.0.1.orig/mediastreamer2/include/mediastreamer2/mssndcard.h       
2007-11-29 22:07:44.000000000 +0100
+++ linphone-2.0.1/mediastreamer2/include/mediastreamer2/mssndcard.h    
2007-12-15 10:02:58.000000000 +0100
@@ -336,16 +336,6 @@
  */
 void ms_snd_card_set_capture(MSSndCard *obj, MSSndCardCapture c);

-/**
- * Create a alsa card with user supplied pcm name and mixer name.
- * @param pcmdev The pcm device name following alsa conventions (ex: 
plughw:0)
- * @param mixdev The mixer device name following alsa conventions.
- *
- * Returns: a MSSndCard object, NULL if alsa support is not available.
- */
-MSSndCard * ms_alsa_card_new_custom(const char *pcmdev, const char *mixdev);
-
-
 /** @} */
 #ifdef __cplusplus
diff -Naur linphone-2.0.1.orig/mediastreamer2/src/alsa.c 
linphone-2.0.1/mediastreamer2/src/alsa.c
--- linphone-2.0.1.orig/mediastreamer2/src/alsa.c       2007-11-29 
22:10:06.000000000 +0100
+++ linphone-2.0.1/mediastreamer2/src/alsa.c    2007-12-15 10:05:10.000000000 
+0100
@@ -515,17 +515,6 @@
        return obj;
 }

-MSSndCard * ms_alsa_card_new_custom(const char *pcmdev, const char *mixdev){
-       MSSndCard * obj;
-       AlsaData *ad;
-       obj=ms_snd_card_new(&alsa_card_desc);
-       ad=(AlsaData*)obj->data;
-       obj->name=ms_strdup(pcmdev);
-       ad->pcmdev=ms_strdup(pcmdev);
-       ad->mixdev=ms_strdup(mixdev);
-       return obj;
-}
-
 static MSSndCard * alsa_card_new(int id)
 {
        MSSndCard * obj;
@@ -552,8 +541,8 @@
                pos2=pos1+strlen(pos1)-1;
                for (; pos2>pos1 && *pos2==' '; pos2--) *pos2='\0';
                obj->name=pos1;
-               ad->pcmdev=ms_strdup_printf("default:%i",id);
-               ad->mixdev=ms_strdup_printf("default:%i",id);
+               ad->pcmdev=ms_strdup_printf("plughw:%i,0",id);
+               ad->mixdev=ms_strdup_printf("hw:%i",id);
        }
        free(name);
        /*ms_message("alsa device %s found",obj->name);*/
vovan [pts/4 bg 0] /mnt/portage/overlays/layman/voip/net-voip/linphone/files>



On Friday 14 December 2007 16:41:18 address@hidden wrote:
> Quoting Simon Morlat <address@hidden>:
> > Le Friday 14 December 2007 12:46:08 address@hidden, vous avez écrit :
> >> Quoting Alastair Johnson <address@hidden>:
> >> > On Friday 14 December 2007, Simon Morlat wrote:
> >> >> Hi,
> >> >>
> >> >> This is a bug, but you can workaround it by installing alsa library
> >> >> headers; libasound-dev in debian
> >> >> alsa-devel with rpm (probably)
> >> >> I don't know the package  name for gentoo, sorry.
> >> >
> >> > On Gentoo it's alsa-headers but since this is a dependency of alsa-lib
> >> > it should be installed already
> >>
> >> For Gentoo it shouldn't be the case, only the version of alsa in my
> >> system is 1.0.14. The most recent version of ALSA is 1.0.15 at the
> >> moment. Could it be the problem?
> >
> > No.
> > Do you have /usr/include/alsa/asoundlib.h on your machine ?
>
> Sure, I do have it :)
>
>
>
>
> _______________________________________________
> Linphone-users mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/linphone-users





reply via email to

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