Quantcast
Channel: CodeSection,代码区,Linux操作系统:Ubuntu_Centos_Debian - CodeSec
Viewing all articles
Browse latest Browse all 11063

终端播放器Cmus和一些配置

$
0
0

终端播放器Cmus和一些配置

超喜欢的一款linux的播放器啊~ 无论有没有gui都能放歌,真是超赞有没有!支持各种格式,flac, ape, aiff又能读cue。纯C写得程序都是艺术啊( https://github.com/cmus/cmus )。速度快,内存占用少。

有个插件能显示专辑封面,不过不太喜欢,打算自己写个。

研究了下cmus的配置,终于能独立输出,不受系统全局影响了。之前其他软件的声音和cmus mix到一起,会破音。

#打开配置文件

gedit ~/.config/cmus/rc

粘贴如下代码

set output_plugin=alsa set dsp.alsa.device=plughw:C20,0

“plughw:C20,0″是怎么来呢?

终端输入”aplay -L”

我的dac声卡的对应的输出:

sysdefault:CARD=C20 Cambridge Audio USB Audio 2.0, USB Audio Default Audio Device front:CARD=C20,DEV=0 Cambridge Audio USB Audio 2.0, USB Audio Front speakers surround21:CARD=C20,DEV=0 Cambridge Audio USB Audio 2.0, USB Audio 2.1 Surround output to Front and Subwoofer speakers dmix:CARD=C20,DEV=0 Cambridge Audio USB Audio 2.0, USB Audio Direct sample mixing device dsnoop:CARD=C20,DEV=0 Cambridge Audio USB Audio 2.0, USB Audio Direct sample snooping device hw:CARD=C20,DEV=0 Cambridge Audio USB Audio 2.0, USB Audio Direct hardware device without any conversions plughw:CARD=C20,DEV=0 Cambridge Audio USB Audio 2.0, USB Audio Hardware device with all software conversions

plughw:CARD=C20,DEV=0 变成 plughw:C20,0

很好懂吧。前缀:声卡名字,设备号

具体的描述:Hardware device with all software conversions (带软件转换的硬件输出)

有用的控制(备忘):

大部分跟vim控制相似hjkl那些

s toggle shuffle

m toggle 在album/artist/list..中随机

C toggle continue

M toggle play_librar(从随机恢复正常)

space 展开artist,看专辑

…adding…


Viewing all articles
Browse latest Browse all 11063

Trending Articles