You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Simple mixer control 'Master',0
Capabilities: pvolume pswitch pswitch-joined
Playback channels: Front Left - Front Right
Limits: Playback 0 - 65536
Mono:
Front Left: Playback 11142 [17%] [on]
Front Right: Playback 11142 [17%] [on]
我这儿
amixer get Master
的输出是这样的:所以像现在代码里那样 grep Mono 的话拿到的是空行,不能获取音量。
不知道是有bug还是 amixer 不同版本、平台下的表现不同。前者的话我这儿已经改好了一个版本,可以发个PR上来;后者的话,需要考虑一下更可靠的音量获取方法了。
The text was updated successfully, but these errors were encountered: