Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Jan 2018 17:38:19 +0100
From:      Per Gunnarsson <p.gunnarsson@yahoo.com>
To:        gnome@FreeBSD.org
Subject:   webrtc for module-echo-cancel on pulseaudio (no hurry)
Message-ID:  <a8743029-b008-5a69-2ab0-c35c3b4e8bf7@yahoo.com>

index | next in thread | raw e-mail

Hello!

I have tried to compile webrtc for module-echo-cancel to pulseaudio.

webrtc removes a lot of microphone noise on Linux.

It compiled, but I have problems recompiling pulseaudio after that.


When compiling webrtc-audio-processing-0.3,

I added

[*-*freebsd*],
        [
         OS_CFLAGS="-DWEBRTC_FREEBSD"
         PLATFORM_CFLAGS="-DWEBRTC_POSIX"
        ],

to configure.ac

did

env LDFLAGS=-lexecinfo ./configure

added

#include <pthread_np.h> webrtc-audio-processing-0.3


#elif defined(WEBRTC_FREEBSD)
  ret = pthread_getthreadid_np();

to webrtc/base/platform_thread.cc

commented out something with

malloc.h and/or alloca

from webrtc/base/stringutils.h

and after this it compiled.


Before trying to compile pulseaudio, I moved the webrtc directory in
webrtc-audio-processing-0.3

to /usr/local/include

When trying to compile pulseaudio, I had to add a header file rotation.h
to the directory

webrtc/common_video. I think I found it here
<https://github.com/AnyRTC/anyRTC-RTMP-OpenSource/tree/master/webrtc/common_video>(apologies
for html mail).

After that, I ran into the attached error.

I have mailed Arun Raghavan about it too.

Regards,

Per Gunnarsson




home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a8743029-b008-5a69-2ab0-c35c3b4e8bf7>