pulseaudio 安装及问题

Totem,mplayer,sopcast,realplayer,bmp
回复
头像
自由建客
帖子: 13468
注册时间: 2008-07-30 23:21
系统: Debian stable AMD64

pulseaudio 安装及问题

#1

帖子 自由建客 » 2011-12-28 22:35

Debian squeeze 环境。

本一直只用 alsa,今日犯贱,装了 pulseaudio,结果发现凡播放停止时都会“啪”的一声响。
研究发现,当我用 smplayer 播放时,主音量(alsamixer 命令中 Master 所指)会下降,停止播放时,主音量会被恢复原高位,于是就“啪”的一声响了。
另外,很令人诧异的是,众网友口中,“削波”被说成了“爆音”。

---------------------------------------------
问题基本解决,最终效果还算满意,就还有调节音量扑哧贯耳,如若电位器接触不良一个问题了。

安装日志:

代码: 全选

aptitude install -R pulseaudio libasound2-plugins pulseaudio-utils pavucontrol

# ----------------------------------------------------------------------------
vi /etc/asound.conf #{
pcm.pulse {
    type pulse
}
ctl.pulse {
    type pulse
}
pcm.!default {
    type pulse
}
ctl.!default {
    type pulse
}
#}

# ----------------------------------------------------------------------------
vi /etc/pulse/daemon.conf #{
flat-volumes = no
#}

# ----------------------------------------------------------------------------
vi /usr/share/pulseaudio/alsa-mixer/paths/analog-output.conf #{
[Element Hardware Master]
switch = mute
volume = ignore

[Element Master]
switch = mute
volume = ignore
#}

# ----------------------------------------------------------------------------
vi /usr/share/pulseaudio/alsa-mixer/paths/analog-output.conf.common #{
[Element PCM]
switch = ignore
volume = ignore
#}

# ----------------------------------------------------------------------------
insserv -r pulseaudio
vi ~/.xsession #{
start-pulseaudio-x11
amixer sset Master 1%-
amixer sset Master 1%+
paplay "${HOME}/.config/login.wav" &
#}

# ----------------------------------------------------------------------------
# 加入 pulse-access 组
gpasswd -a fb pulse-access
简释:
令 Master 及 PCM 中的 volume = ignore 即可解决播放起停时啪啪做声的问题。
切记务必保留 Master 中的 switch = mute,否则某些有音量指示灯的笔记本的指示灯将形同虚设。
当 flat-volumes = no,每次启动时音量会有点问题。发现调整一下音量即可正常,故会话脚本中有 amixer 两行。
启动音仍可保持以前的 aplay,但觉得还是改成 paplay 为好。
头像
自由建客
帖子: 13468
注册时间: 2008-07-30 23:21
系统: Debian stable AMD64

Re: pulseaudio 安装及问题

#2

帖子 自由建客 » 2013-01-28 21:25

Debian 7 wheezy 下疯了
viewtopic.php?f=165&t=400067
Wjian
帖子: 2044
注册时间: 2005-08-07 18:34
系统: android 4.2.1
来自: 湛江

Re: pulseaudio 安装及问题

#4

帖子 Wjian » 2013-01-28 21:51

debian 7安装过pulseaudio,没有上述发疯问题,也没有啪啪声,用gnome 和xfce 的话,可以安装pavucontrol 控制音量。

Sent from my MT11i using Tapatalk 2
头像
自由建客
帖子: 13468
注册时间: 2008-07-30 23:21
系统: Debian stable AMD64

Re: pulseaudio 安装及问题

#5

帖子 自由建客 » 2013-01-28 22:26

决定解雇它了,只用 alsa。
头像
kkkmaokkk
帖子: 480
注册时间: 2010-01-01 7:05

Re: pulseaudio 安装及问题

#6

帖子 kkkmaokkk » 2013-02-02 10:50

自由建客 写了:决定解雇它了,只用 alsa。
firefox没声音怎么办?
麻烦各位多指点
0.0
头像
自由建客
帖子: 13468
注册时间: 2008-07-30 23:21
系统: Debian stable AMD64

Re: pulseaudio 安装及问题

#7

帖子 自由建客 » 2013-02-02 18:12

kkkmaokkk 写了:
自由建客 写了:决定解雇它了,只用 alsa。
firefox没声音怎么办?
Firefox 有啥声音?flash 自然有。
回复