【文件属性】:
文件名称:openpipe:从标准输入创建一个非阻塞管道
文件大小:15KB
文件格式:ZIP
更新时间:2021-07-12 01:03:23
C
Openpipe 从标准输入创建一个非阻塞管道。
可能有一种更简单的方法来实现这一点,但我想从 Pianobar ( ) 获取音频到 forked-daapd ( ) ,这有效。
要使用,请在 ~/.asoundrc 或 /etc/asound.conf 中设置一个 ALSA 别名:
pcm.writePipe {
type file
slave {
pcm null
}
file "|openpipe /srv/music/Pandora"
format "raw"
}
使用 mkfifo 创建命名管道并确保写入权限合适。
然后,将 ALSA 音频发送到“writePipe”。 对于钢琴栏,在 /etc/libao.conf 中添加一行:
dev=writePipe
构建:
$ git clone "https://github.com/b-fi
【文件预览】:
openpipe-master
----openpipe.c(2KB)
----LICENSE(34KB)
----lcthw()
--------dbg.h(982B)
----Makefile(70B)
----README.md(783B)