Android上的PulseAudio服务器

Android上的PulseAudio服务器,第1张

概述我想将音频从我的Linux盒子流式传输到Android设备,尽可能延迟,所以我想到使用PulseAudio和module-opensl-sink(找到here).我不想用PA取代AudioFlinger,因为我想使用它的效果API.我设法使用Google的AndroidNDK以某种方式编译PulseAudio,但每次我尝试启动它时,无论我尝试加载哪个模

我想将音频从我的Linux盒子流式传输到Android设备,尽可能延迟,所以我想到使用pulseAudio和module-opensl-sink(找到here).我不想用PA取代audioflinger,因为我想使用它的效果API.@H_404_1@

我设法使用Google的AndroID NDK以某种方式编译pulseAudio,但每次我尝试启动它时,无论我尝试加载哪个模块,它都会抛出错误.@H_404_1@

@H_404_1@

$./pulseaudio -C --loglevel=4W: [pulseaudio] caps.c: normally all extra capabilitIEs would be dropped Now, but that's impossible because pulseAudio was built without capabilitIEs support.I: [pulseaudio] main.c: setrlimit(RliMIT_RTPRIO, (9, 9)) Failed: Operation not permittedD: [pulseaudio] core-util.c: setpriority() worked.I: [pulseaudio] core-util.c: Successfully gained nice level -11.I: [pulseaudio] main.c: This is pulseAudio 5.0-121-g38c5d-dirtyD: [pulseaudio] main.c: Compilation host: arm-unkNown-linux-androIDeabiD: [pulseaudio] main.c: Compilation CFLAGS: -mfpu=neon -mfloat-abi=softfp -Wall -W -Wextra -pipe -Wno-long-long -Wno-overlength-strings -Wunsafe-loop-optimizations -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wcast-align -Wstrict-aliasing -Wwrite-strings -Wno-unused-parameter -ffast-math -fno-common -fdiagnostics-show-optionD: [pulseaudio] main.c: Running on host: linux armv7l 3.4.0-cyanogenmod-g8a32cd7 #1 SMP PREEMPT Sun Jun 8 19:40:15 PDT 2014D: [pulseaudio] main.c: Found 4 cpus.I: [pulseaudio] main.c: Page size is 4096 bytesD: [pulseaudio] main.c: Compiled with Valgrind support: noD: [pulseaudio] main.c: Running in valgrind mode: noD: [pulseaudio] main.c: Running in VM: noD: [pulseaudio] main.c: Optimized build: noD: [pulseaudio] main.c: FASTPATH defined, only fast path asserts Disabled.I: [pulseaudio] main.c: Machine ID is localhost.I: [pulseaudio] main.c: Using runtime directory /data/data/jackpal.androIDterm/app_HOME/.config/pulse/localhost-runtime.I: [pulseaudio] main.c: Using state directory /data/data/jackpal.androIDterm/app_HOME/.config/pulse.I: [pulseaudio] main.c: Using modules directory /data/local/pa/lib/pulse-5.0/modules.I: [pulseaudio] main.c: Running in system mode: noI: [pulseaudio] main.c: Fresh high-resolution timers available! Bon appetit!W: [pulseaudio] core.c: Failed to allocate shared memory pool. Falling back to a normal memory pool.D: [pulseaudio] memblock.c: Using private memory pool with 1024 slots of size 64.0 KiB each, total size is 64.0 MiB, maximum usable slot size is 65496I: [pulseaudio] cpu-arm.c: cpu flags: V6 V7 VFP EDSP NEON VFPV3 I: [pulseaudio] sconv_neon.c: Initialising ARM NEON optimized conversions.I: [pulseaudio] mix_neon.c: Initialising ARM NEON optimized mixing functions.I: [pulseaudio] remap_neon.c: Initialising ARM NEON optimized remappers.E: [pulseaudio] module.c: Failed to open module "module-cli".E: [pulseaudio] main.c: Module load Failed.E: [pulseaudio] main.c: Failed to initialize daemon.I: [pulseaudio] main.c: Daemon terminated.

我用这些参数配置了PA:@H_404_1@

@H_404_1@

./configure --prefix="/data/local/pa" --host arm-linux-androIDeabi --enable-neon-opt --with-sysroot='/data/local/pa' --without-caps --disable-shared --enable-static --disable-avahi --disable-alsa --disable-jack --disable-gconf --disable-esound --disable-openssl --disable-dbus --disable-glib2 --disable-orc --disable-adrian-aec --disable-rpath --enable-static-bins --disable-ipv6 --enable-force-preopen

为什么它找不到这些模块,即使它报告了正确的模块目录?@H_404_1@

解决方法:@H_404_1@

pulseAudio中的一个错误导致模块被错误地构建(作为静态库),因此无法加载它们.重新配置没有–disable-shared –enable-static –enable-static-bin使它工作:)@H_404_1@ 总结

以上是内存溢出为你收集整理的Android上的PulseAudio服务器全部内容,希望文章能够帮你解决Android上的PulseAudio服务器所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1112026.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-29
下一篇 2022-05-29

发表评论

登录后才能评论

评论列表(0条)

保存