noatun and desktop sounds: big delay between picture and sound?
Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
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.
Thanks. I don't know if this is going off topic but with analog television on tvtime or kdetv they give no sound but I get some with: sox -c 1 r 32000 -t alsa hw:1 -c 2 -t alsa hw:0 (where c is the number of channels and r is the rate).
If I try to get stereo with c=2 the sound is very distorted the degree of distortion depending on the rate, -r. Incidentally the rate from the tv card should be 48000 according to ?/proc/sound.
'play' is sox isn't it, so presumably no stereo?? But I'd never heard of mpg123 so will try that with joy in my heart.
Thanks. I don't know if this is going off topic but with analog television on tvtime or kdetv they give no sound but I get some with: sox -c 1 r 32000 -t alsa hw:1 -c 2 -t alsa hw:0 (where c is the number of channels and r is the rate).
If I try to get stereo with c=2 the sound is very distorted the degree of distortion depending on the rate, -r. Incidentally the rate from the tv card should be 48000 according to ?/proc/sound.
'play' is sox isn't it, so presumably no stereo?? But I'd never heard of mpg123 so will try that with joy in my heart.
play is sox, yes. However I never experienced any problem with it to play stereo files or whatever else. I had some problems with distorted sound on via chipsets, long ago (it might have been fixed at driver level by this time, I don't know).
There are a bazillion sound players for command line, so you shouldn't have a problem to find a replacement if sox doesn't suit you. You can always use plain mplayer, that will play almost anything, however it's a bit of an overkill for just system sounds (though they are usually short enough so it will not live long in your ram).
(The ossdsp gives play access to /dev/dsp. Have alsa installed, not oss; so this is presumably oss emulation.)
So this is giving stereo presumably.
The problem is the latency is *just* adequate or *just* inadequate, depending on how I'm feeling.
There is also the problem that the latency gets worse with time, so that after a few hours the sound lags the vision by a few seconds. Tried to remedy this with speed 1.01 which possibly makes it play 1% faster but this introduces some distortion.
You couldn't suggest a sox replacement could you? I have little experience with sound problems. Perhaps arts or pulseaudio could be used??
arts or pulseaudio operate on top of alsa. So, if the problem is in alsa, it will still be there. If the problem is your application (sox), then arts/pulseaudio is not going to help you.
By the way, arts has a very bad record in which regards latency. And it has been completely unsupported since many years ago, completely abandoned. I am not sure it's still working on kde 3.5.10, and it is not shipped in kde 4.x at all. It's not the best moment to start using arts, to tell the truth.
Sox is just a command line player, if you want substitutes for it there are lots of small programs to play many file formats, you can use mplayer as well. It really depends on what do you exactly need. Sox has also some editing capabilities, and that's harder to find on a command line tool.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.