Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 14341 - mpg321-0.2.10-r1 produces noisy artifacts
Summary: mpg321-0.2.10-r1 produces noisy artifacts
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal
Assignee: J. Ellis (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-22 00:02 UTC by Klaus-J. Wolf
Modified: 2003-04-12 02:26 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
libao-0.8.3.ebuild (libao-0.8.3.ebuild,851 bytes, text/plain)
2003-03-23 03:48 UTC, J. Ellis (RETIRED)
Details
libao-0.8.3.patch (libao-0.8.3.patch,717 bytes, patch)
2003-03-23 03:50 UTC, J. Ellis (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Klaus-J. Wolf 2003-01-22 00:02:14 UTC
On my P4/2000 (Asus P4T533-C with Soundblaster 128/PCI = Ensoniq 1371, Alsa
Driver 0.9.0rc6) mpg321 produces noisy artifacts of low frequency.

xmms, mpg123 and ogg123 work perfectly.
Comment 1 Tobias Eichert 2003-01-29 09:50:22 UTC
Try using "mpg321 -o oss file.mp3". 
In addition  "mpg321 --help" shows available libao output plugins. 
Setting -o to alsa or alsa09 produces those noisy artifacts; maybe an 
alsa/oss compatibility layer problem. 
Comment 2 J. Ellis (RETIRED) gentoo-dev 2003-03-02 04:17:17 UTC
Is this still an issue? Unable to reproduce.

Will need more up to date information if this is still happening.
Comment 3 Klaus-J. Wolf 2003-03-02 04:28:40 UTC
4 days till next reliable answer. Sorry. I am extremely busy at the moment.
Comment 4 J. Ellis (RETIRED) gentoo-dev 2003-03-02 08:14:59 UTC
No problem. Please also let me know if viz's suggestion makes any difference. Thanks!
Comment 5 Klaus-J. Wolf 2003-03-03 05:56:01 UTC
Yes, the problem is still there (with system updated as much as possible). "-o oss" produces no artifacts, but alsa driver still sounds horrible.
Comment 6 J. Ellis (RETIRED) gentoo-dev 2003-03-03 08:20:21 UTC
Alright, i'll have another go at reproducing this. 

Thanks for the quick feedback.
Comment 7 J. Ellis (RETIRED) gentoo-dev 2003-03-17 05:21:54 UTC
Just want to check, you see this with both '-o alsa' and '-o alsa09'?
Comment 8 Klaus-J. Wolf 2003-03-17 10:01:36 UTC
Both output device option show the same effect...
Comment 9 J. Ellis (RETIRED) gentoo-dev 2003-03-22 00:58:01 UTC
Apologies that this has taken so long for me to get to... i've recreated and fixed the distortion that you were hearing.

The problem is with the alsa09 plugin of the libao library. For reasons that i don't yet understand, the plugin calls snd_pcm_hw_params_set_period_size while setting up alsa. Changing this to call snd_pcm_hw_params_set_buffer_size fixes the distortion on playback.

I'll try and contact the upstream dev to get the fix commited. In the meantime i'll commit a patch to portage. 
Comment 10 J. Ellis (RETIRED) gentoo-dev 2003-03-23 03:48:49 UTC
Created attachment 9710 [details]
libao-0.8.3.ebuild

Hacked to patch libao/plugin/alsa09/ao_alsa09.c
Comment 11 J. Ellis (RETIRED) gentoo-dev 2003-03-23 03:50:20 UTC
Created attachment 9711 [details, diff]
libao-0.8.3.patch

Patch to remove alsa setting.
Comment 12 J. Ellis (RETIRED) gentoo-dev 2003-03-23 03:55:16 UTC
Try the attached ebuild and patch. Copy the patch into libao/files and then re-emerge. The patch doesn't do anything clever, just removes a few param settings. It seems the defaults are more reasonable.

Let me know if it fixes the problem for you - it does for me.
Comment 13 J. Ellis (RETIRED) gentoo-dev 2003-04-12 02:26:38 UTC
Commited (masked)