Bug 100918
Summary: | redhat-credits causes audio distortion, but the ogg file by itself doesn't | ||||||
---|---|---|---|---|---|---|---|
Product: | [Retired] Red Hat Linux Beta | Reporter: | George Karabin <gkarabin> | ||||
Component: | redhat-artwork | Assignee: | Alexander Larsson <alexl> | ||||
Status: | CLOSED RAWHIDE | QA Contact: | |||||
Severity: | low | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | beta1 | CC: | mitr | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | i386 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2003-08-08 14:22:29 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 100644 | ||||||
Attachments: |
|
Description
George Karabin
2003-07-27 03:03:46 UTC
Created attachment 93172 [details]
fixes the audio stuttering
All of the console output that ogg123 is generating is returnin a ton of error
messages, given the high rate at which it writes to the console. Using dup2 and
/dev/null is much more smooth - apparently it's a lot more expensive to write
to a nonexisting file handle than an existing one.
On my 1GHz Athlon, this is definitely noticeable. Maybe different grades of
hardware don't see the problem, maybe they do. In any case, a patch that makes
the program much more smooth is attached. :)
Doh! I was suspecting the kernel... What really happens is that the ogg123 uses file descriptor 2 for /dev/dsp (because of the close (1), close (2) that shouldn't be there), and is sending its status information with the sound data. *** Bug 81209 has been marked as a duplicate of this bug. *** Oops - yeah, that's what's going on. The "error message" theory was obviously a product of sleep deprivation.... :) Indeed, this looks like the right patch. Doh. Fortunately I don't think I wrote that part of the code ;-) I checked in the fix. It'll be in the next redhat-artwork build. Fixed in 0.78-1 |