我一直在尝试通过adb shell在Android设备上运行的本地linux程序中捕获音频。
由于我似乎只得到了(非常安静的)噪声,即没有实际的信号(有趣的是,一个执行类似操作的安卓/Java程序确实显示该输入上有一个信号),所以我执行了alsa_amixer,它有一个条目看起来是正确的:
Simple mixer control 'Capture',0
Capabilities: cvolume cswitch penum
Capture channels: Front Left - Front Right
Limits: Capture 0 - 63
Fro
我输入了"make“输出
[chuck build]: please use one of the following configurations:
make linux-alsa, make linux-jack, make linux-pulse,
make osx, make osx-ub, make cygwin, or make win32
第一,如何在其中作出选择?
我试过了,这是错误
使linux-alsa
g++ -I. -Ilo -O3 -D__LINUX_ALSA__ -D__PLATFORM_LINUX__ -O3 -fno-strict-alias
在这里,我打印我的设备信息。已连接廉价的USB音频设备。 for i in range(p.get_device_count()):
dev = p.get_device_info_by_index(i)
print((i, dev['name'], dev['maxInputChannels']))
(0, 'bcm2835 ALSA: - (hw:0,0)', 0)
(1, 'bcm2835 ALSA: IEC958/HDMI(hw:0,1)', 0)
(2, 'TP6920: USB Audi
我无法在GUI和非GUI终端中使用morse实用程序:
# echo word | morse
Could not initialize audio: Connection refused
Can't access speaker.
为什么有此错误,以及如何将morse与alsamixer结合使用?
来自/usr/share/doc/morse/README:
Currently supported devices:
X11: The X11 window system. (Warning: not all X11 implementations handle
我试图运行我的二进制的虚拟板的ARM多功能轻量级板在Qemu。我使用这个命令来像这样运行它
qemu-system-arm -M versatilepb -m 128M -nographic -kernel test.bin
test.bin is my program. a really a simple program that writes to tty. but it gives me error that
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:474