【发布时间】:2017-03-02 03:06:25
【问题描述】:
我使用 buildroot 进行了自定义分发,并为 ARMv7 处理器提供了硬流程。 一切正常,除了....
# arecord -D hw:0,0 -fdat -d 5 test.wav
这会生成多个文件。成千上万的人。
-rw-r--r-- 1 root root 958508 Jan 1 00:19 test-01.wav
-rw-r--r-- 1 root root 44 Jan 1 00:19 test-02.wav
-rw-r--r-- 1 root root 44 Jan 1 00:19 test-03.wav
-rw-r--r-- 1 root root 44 Jan 1 00:19 test-04.wav
-rw-r--r-- 1 root root 44 Jan 1 00:19 test-05.wav
-rw-r--r-- 1 root root 44 Jan 1 00:19 test-06.wav
-rw-r--r-- 1 root root 44 Jan 1 00:19 test-07.wav
-rw-r--r-- 1 root root 44 Jan 1 00:19 test-08.wav
-rw-r--r-- 1 root root 44 Jan 1 00:19 test-09.wav
-rw-r--r-- 1 root root 44 Jan 1 00:19 test-10.wav
-rw-r--r-- 1 root root 44 Jan 1 00:19 test-100.wav
-rw-r--r-- 1 root root 44 Jan 1 00:19 test-101.wav
-rw-r--r-- 1 root root 44 Jan 1 00:19 test-102.wav
-rw-r--r-- 1 root root 44 Jan 1 00:19 test-103.wav
-rw-r--r-- 1 root root 44 Jan 1 00:19 test-104.wav
-rw-r--r-- 1 root root 44 Jan 1 00:19 test-105.wav
-rw-r--r-- 1 root root 44 Jan 1 00:19 test-106.wav
等等……
如果我传递 -d 参数,就会发生这种情况。有什么想法吗?
【问题讨论】:
-
您是否使用 amixer 或 alsamixer 检查了音频设置?您需要启用记录源。我猜你的意思是hard-float?但这应该没关系。你也可以试试
-N,以防驱动程序有问题。 -
理论上第一个文件应该有960044字节。这看起来好像没有正确处理 64 位算术。
标签: audio embedded-linux alsa buildroot