[已解决]audacious 2.4 cpu占用率过高

Totem,mplayer,sopcast,realplayer,bmp
回复
我是一只菜菜鸟
帖子: 167
注册时间: 2009-08-19 8:27

[已解决]audacious 2.4 cpu占用率过高

#1

帖子 我是一只菜菜鸟 » 2010-09-16 17:01

升级到2.4后占有率都超过50%
上网找了下,有一个方法:
Edit: with the following /etc/asound.conf forcing dmix to 44.1KHz, audacious does indeed drop to 0-10% CPU usage:
pcm.!default {
type plug
slave.pcm {
type dmix
ipc_key 1024
slave {
pcm "hw:0,0"
rate 44100
}
}
}

之后有人回帖这样说
DMix is a part of ALSA. I believe the CPU usage problem is still present in the most recent version. It seems to help, as you noticed, to have Audacious use the same sample rate that DMix is using (i.e. change the the DMix rate to 44100 Hz or have Audacious resample to 48000 Hz).

既然是alsa的问题,我就试差将输出插件改为OSS,结果cpu占有率恢复正常,就没有按上面方法改。如果你们也升级了,又遇到同样的问题,或者可以试下上面的方法。
上次由 我是一只菜菜鸟 在 2010-09-24 17:36,总共编辑 1 次。
curator
帖子: 384
注册时间: 2010-08-30 10:26

Re: audacious 2.4 cpu占用率过高

#2

帖子 curator » 2010-09-16 17:05

据高手说,声卡输出是24 48的,根本没有44.1这个怪胎,所以如果输出44.1,就只能降级为24,在我看来,这是进步

foobar就有相关的插件实现 resample:http://www.google.com.hk/search?hl=zh-C ... =&gs_rfai=
我想死
头像
rapistor
帖子: 1983
注册时间: 2009-01-19 15:09

Re: audacious 2.4 cpu占用率过高

#3

帖子 rapistor » 2010-09-16 17:59

楼上观点很搞笑,数字 音乐最初是什么格式,你去查查?
cd的wave是怎样取样的? :em20
坚守在linux的天堂!
delectate
帖子: 18311
注册时间: 2008-01-09 22:41

Re: audacious 2.4 cpu占用率过高

#5

帖子 delectate » 2010-09-16 19:24

rapistor 写了:楼上观点很搞笑,数字 音乐最初是什么格式,你去查查?
cd的wave是怎样取样的? :em20
我不是说了嘛,某高手曾经告诉我的,我也不知道正确与否,没时间,也懒得去查证。反正我audacity弄的时候都是44.1。
我是一只菜菜鸟
帖子: 167
注册时间: 2009-08-19 8:27

Re: audacious 2.4 cpu占用率过高

#6

帖子 我是一只菜菜鸟 » 2010-09-24 17:01

发现了一个问题,改成了oss之后,cpu问题是解决了,但又出现了独占问题,好像跟flashplugin的音频输出有冲突,开了audacious之后,flash没声音,要关掉audacious之后才有声音,而如果先开falsh,audacious就播不了音乐。
或者真要试下第一种方法。
我是一只菜菜鸟
帖子: 167
注册时间: 2009-08-19 8:27

Re: audacious 2.4 cpu占用率过高

#7

帖子 我是一只菜菜鸟 » 2010-09-24 17:05

试了下第一种方法,果然可以,flash也没冲突了。。。 :em11
我是一只菜菜鸟
帖子: 167
注册时间: 2009-08-19 8:27

Re: audacious 2.4 cpu占用率过高

#8

帖子 我是一只菜菜鸟 » 2010-09-24 17:10

试了下第一种方法,果然可以,flash也没冲突了。。。 :em11
我是一只菜菜鸟
帖子: 167
注册时间: 2009-08-19 8:27

Re: audacious 2.4 cpu占用率过高

#9

帖子 我是一只菜菜鸟 » 2010-09-24 17:34

对比了一下 deadbeef和audacious,audacious的cpu大概在2%-3%左右,系统托盘时会小一点,而deadbeef要8%-10%左右,当然不同cpu就不一样。而内存方面,audacious要2.9%,deadbeef要2%,同样也是要看本身的内存,我内存较小而且显存也有共享。。所以。。。 :em06
头像
photor
论坛版主
帖子: 11004
注册时间: 2008-04-26 12:41

Re: audacious 2.4 cpu占用率过高

#10

帖子 photor » 2010-09-24 18:38

我是一只菜菜鸟 写了:试了下第一种方法,果然可以,flash也没冲突了。。。 :em11
第一种方法是什么方法? :em09
我是一只菜菜鸟
帖子: 167
注册时间: 2009-08-19 8:27

Re: [已解决]audacious 2.4 cpu占用率过高

#11

帖子 我是一只菜菜鸟 » 2010-09-24 18:53

Edit: with the following /etc/asound.conf forcing dmix to 44.1KHz, audacious does indeed drop to 0-10% CPU usage:
pcm.!default {
type plug
slave.pcm {
type dmix
ipc_key 1024
slave {
pcm "hw:0,0"
rate 44100
}
}
}
头像
cnkilior
论坛版主
帖子: 4984
注册时间: 2007-08-05 17:40

Re: [已解决]audacious 2.4 cpu占用率过高

#12

帖子 cnkilior » 2010-09-24 18:59

这种方法是开启alsa的软件混音,要占不少CPU。

我在android上就开曾经开了这个,结果CPU90%
回复