安装了mpd。当您尝试设置音量时,值不完全或根本不正确。
mpc volume 100
volume:100% repeat: on random: off single: off consume: off
mpc volume 95
volume: 94% repeat: on random: off single: off consume: off
mpc volume 85
volume: 84% repeat: on random: off single: off consume: off
mpc volume 72
volume: 71% repeat: on random: off single: off consume: off
mpc volume 65
volume: 63% repeat: on random: off single: off consume: off
mpc volume 45
volume: 45% repeat: on random: off single: off consume: off
mpc volume 33
volume: 32% repeat: on random: off single: off consume: off
mpc volume 21
volume: 20% repeat: on random: off single: off consume: off
mpc volume 9
volume: 0% repeat: on random: off single: off consume: off
mpc volume 2
volume: 19% repeat: on random: off single: off consume: off
mpc volume 12
volume: 0% repeat: on random: off single: off consume: off
mpc volume 14
volume: 19% repeat: on random: off single: off consume: off
mpc volume 15
volume: 0% repeat: on random: off single: off consume: off
mpc volume 16
volume: 19% repeat: on random: off single: off consume: off
mpc volume 17
volume: 0% repeat: on random: off single: off consume: off
mpc volume 19
volume: 20% repeat: on random: off single: off consume: off
mpc volume 20
volume: 20% repeat: on random: off single: off consume: off
mpc volume 21
volume: 21% repeat: on random: off single: off consume: off
mpc volume 22
volume: 22% repeat: on random: off single: off consume: off
mpc volume 23
volume: 24% repeat: on random: off single: off consume: off
mpc volume 23
volume: 22% repeat: on random: off single: off consume: off
mpc volume 9
volume: 0% repeat: on random: off single: off consume: off
mpc volume +9
volume: 19% repeat: on random: off single: off consume: off
mpc volume -9
volume: 0% repeat: on random: off single: off consume: off
配置示例
audio_output {
type "alsa"
name "My ALSA Device"
device "hw:CARD=Codec,DEV=0"
mixer_device "default"
mixer_control "Line Out"
mixer_index "0"
}
混音器输出
Simple mixer control 'Line In',0
Capabilities: pvolume pvolume-joined pswitch cswitch
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: Playback 0 - 7
Front Left: Playback 7 [100%] [6.00dB] [on] Capture [off]
Front Right: Playback 7 [100%] [6.00dB] [on] Capture [off]
Simple mixer control 'Line Out',0
Capabilities: pvolume pvolume-joined pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 17 [55%] [-21.00dB] [on]
Front Right: Playback 17 [55%] [-21.00dB] [on]
Simple mixer control 'Line Out Source',0
Capabilities: penum
Items: 'Stereo' 'Mono Differential'
Item0: 'Mono Differential'
Item1: 'Mono Differential'
Simple mixer control 'Mic1',0
Capabilities: pvolume pvolume-joined pswitch cswitch
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: Playback 0 - 7
Front Left: Playback 7 [100%] [6.00dB] [off] Capture [off]
Front Right: Playback 7 [100%] [6.00dB] [off] Capture [off]
Simple mixer control 'Mic1 Boost',0
Capabilities: volume volume-joined
Playback channels: Mono
Capture channels: Mono
Limits: 0 - 7
Mono: 7 [100%] [42.00dB]
Simple mixer control 'Mic2',0
Capabilities: pvolume pvolume-joined pswitch cswitch
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: Playback 0 - 7
Front Left: Playback 7 [100%] [6.00dB] [off] Capture [off]
Front Right: Playback 7 [100%] [6.00dB] [off] Capture [off]
Simple mixer control 'Mic2 Boost',0
Capabilities: volume volume-joined
Playback channels: Mono
Capture channels: Mono
Limits: 0 - 7
Mono: 7 [100%] [42.00dB]
Simple mixer control 'Mixer',0
Capabilities: cswitch
Capture channels: Front Left - Front Right
Front Left: Capture [off]
Front Right: Capture [off]
Simple mixer control 'Mixer Reversed',0
Capabilities: cswitch
Capture channels: Front Left - Front Right
Front Left: Capture [off]
Front Right: Capture [off]
Simple mixer control 'ADC Gain',0
Capabilities: cvolume cvolume-joined
Capture channels: Mono
Limits: Capture 0 - 7
Mono: Capture 7 [100%] [6.00dB]
Simple mixer control 'DAC',0
Capabilities: pvolume pvolume-joined pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 63
Mono:
Front Left: Playback 63 [100%] [0.00dB] [on]
Front Right: Playback 63 [100%] [0.00dB] [on]
Simple mixer control 'DAC Reversed',0
Capabilities: pswitch
Playback channels: Front Left - Front Right
Mono:
Front Left: Playback [off]
Front Right: Playback [off]
输出混音器设置“线路输出”0%
Simple mixer control 'Line Out',0
Capabilities: pvolume pvolume-joined pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 0 [0%] [-99999.99dB] [on]
Front Right: Playback 0 [0%] [-99999.99dB] [on]
输出混音器设置“线路输出”100%
Simple mixer control 'Line Out',0
Capabilities: pvolume pvolume-joined pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 31 [100%] [0.00dB] [on]
Front Right: Playback 31 [100%] [0.00dB] [on]
$(seq 0 31) 中 i 的输出;做 amixer set "Line Out" $i; 完成 | grep '左前:'
Front Left: Playback 0 [0%] [-99999.99dB] [on]
Front Left: Playback 1 [3%] [-99999.99dB] [on]
Front Left: Playback 2 [6%] [-43.50dB] [on]
Front Left: Playback 3 [10%] [-42.00dB] [on]
Front Left: Playback 4 [13%] [-40.50dB] [on]
Front Left: Playback 5 [16%] [-39.00dB] [on]
Front Left: Playback 6 [19%] [-37.50dB] [on]
Front Left: Playback 7 [23%] [-36.00dB] [on]
Front Left: Playback 8 [26%] [-34.50dB] [on]
Front Left: Playback 9 [29%] [-33.00dB] [on]
Front Left: Playback 10 [32%] [-31.50dB] [on]
Front Left: Playback 11 [35%] [-30.00dB] [on]
Front Left: Playback 12 [39%] [-28.50dB] [on]
Front Left: Playback 13 [42%] [-27.00dB] [on]
Front Left: Playback 14 [45%] [-25.50dB] [on]
Front Left: Playback 15 [48%] [-24.00dB] [on]
Front Left: Playback 16 [52%] [-22.50dB] [on]
Front Left: Playback 17 [55%] [-21.00dB] [on]
Front Left: Playback 18 [58%] [-19.50dB] [on]
Front Left: Playback 19 [61%] [-18.00dB] [on]
Front Left: Playback 20 [65%] [-16.50dB] [on]
Front Left: Playback 21 [68%] [-15.00dB] [on]
Front Left: Playback 22 [71%] [-13.50dB] [on]
Front Left: Playback 23 [74%] [-12.00dB] [on]
Front Left: Playback 24 [77%] [-10.50dB] [on]
Front Left: Playback 25 [81%] [-9.00dB] [on]
Front Left: Playback 26 [84%] [-7.50dB] [on]
Front Left: Playback 27 [87%] [-6.00dB] [on]
Front Left: Playback 28 [90%] [-4.50dB] [on]
Front Left: Playback 29 [94%] [-3.00dB] [on]
Front Left: Playback 30 [97%] [-1.50dB] [on]
Front Left: Playback 31 [100%] [0.00dB] [on]
输出混音器设置“线路输出”17% | grep '左前:'
Front Left: Playback 6 [19%] [-37.50dB] [on]
此行为是 中的错误的结果,该错误
mpd
已针对21.5
.通常它在设置音量时只会引起小的跳跃(1-2%),但因为。一方面,板上的音量控制相当粗糙(只有 32 个可能的值),另一方面,驱动程序给出的最小支持级别(
-99999.99
)的值不正确,然后在 0 区域内有立即跳到19%
。该怎么办
mpd-21.5
(已在 Debian 测试(书虫)中可用)。音量仍然会逐步变化,在 0-19% 的范围内很可能无法调整音量级别,但结果会更充分:如果指定特定值,则会有特定音量等级。mixer_type "software"
到配置而不是其他混音器参数)。可以更顺畅地调节音量,但 CPU 的负载会增加。