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>

next in thread | raw e-mail | index | archive | help
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*],
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 [
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 OS_CFLAGS=3D"-DWEBRTC_FR=
EEBSD"
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 PLATFORM_CFLAGS=3D"-DWEB=
RTC_POSIX"
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ],

to configure.ac

did

env LDFLAGS=3D-lexecinfo ./configure

added

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


#elif defined(WEBRTC_FREEBSD)
=C2=A0 ret =3D 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/comm=
on_video>(apologies
for html mail).

After that, I ran into the attached error.

I have mailed Arun Raghavan about it too.

Regards,

Per Gunnarsson





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