Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Location: Slovakia, currently working in Liverpool UK
Distribution: Gentoo 2006.0
Audio/Amarok(?) stuttering sound
hi, i have problems with stuttering sound in amarok 1.42beta1. it's playing all right, bu every now and then when cpu usage goes up it stutters. but sometimes, cpu usage is continually high and no stuttering occurs. i only found out it's little bit better after i switcched off skype, but it still happens.
in kcontrol/sound system i checked run with highest priority and set maximum size of buffer. nothing helps.
is there any other place or config file where i could increase priority of audio or further increase the buffers?
my sound card is ATI IXP with ac97 chip, i use xine-engine in amarok. would be other engine better? if yes, which?
i tried it with helix engine, it was worse, i wasn't able to get gstreamer engine running...
I've never used amarok, so I can't give you any advice specific to it. However if your CPU usage is normally less than 50% then spikes up to 100% only occasionally for no aparent reason, then there is probably an audio rate mismatch.
What types of files have you noticed the problem in? How often does it occur?
What sound interface is the xine-engine playing into? ALSA? OSS-emulation? ESD?
If it's possibly, try to repro the issue with aplay. Unfortunately, it will only play wav files. The reason I say to use aplay is because it typical is tied very closely to your sound device, which means there aren't nearly as many layers that can break inbetween.
If you have trouble finding a wav, you could try converting your file with ecasound. Again, I don't know about amarok, but it might have an option to save to wav like xmms does.
I noticed one of my systems has a little bit of a stutter (not bad enough for me to care about, but bad enough for me to test solutions). I happen to be using the dmix plugin on a usb sound device, and I was able to adjust the buffer_time in alsa to compensate. It seemed to help, but it's hard to tell. This page describes the process.
However, tweaking asound.conf is something I have spent hours upon hours learning (and I still don't know what a lot of the plugins do). So that link probably isn't something you'll easily understand. I will summarize it with something simple that will hopefully work.
Edit /etc/asound.conf. At the end of the file add these lines:
pcm "hw:0,0"; #you may have to adjust this if you have 2 sound cards
buffer_size 200000; #buffer size = 2 tenths of a second