View previous topic :: View next topic |
Author |
Message |
charlieg Advocate
Joined: 30 Jul 2002 Posts: 2149 Location: Manchester UK
|
Posted: Thu Feb 26, 2004 2:54 pm Post subject: |
|
|
Hmm, my 'short' config was causing alsa to barf for a couple of games.
Now I've reset it to something more normal, but get this:
Code: | charlie@mightymax charlie $ solarwolf
python: pcm_rate.c:512: snd_pcm_rate_init: Assertion `0' failed.
Aborted |
My asount.conf:
Code: | mightymax etc # cat asound.old
pcm.mixer {
type dmix
ipc_key 1024
slave {
pcm "hw:0,0"
period_time 0
period_size 1024
buffer_size 8192
rate 44100
}
}
pcm.!default {
type plug
slave.pcm "mixer"
} |
_________________ Want Free games?
Free Gamer - open source games list & commentary
Open source web-enabled rich UI platform: Vexi |
|
Back to top |
|
|
TheCoop Veteran
Joined: 15 Jun 2002 Posts: 1814 Location: Where you least expect it
|
Posted: Thu Feb 26, 2004 5:44 pm Post subject: |
|
|
get same error, moving /etc/asound.conf and restarting alsasound init script solves it. _________________ 95% of all computer errors occur between chair and keyboard (TM)
"One World, One web, One program" - Microsoft Promo ad.
"Ein Volk, Ein Reich, Ein Führer" - Adolf Hitler
Change the world - move a rock |
|
Back to top |
|
|
OldTango l33t
Joined: 21 Feb 2004 Posts: 718
|
Posted: Thu Feb 26, 2004 11:42 pm Post subject: |
|
|
I have a question about the kernel itself. I am running the 2.6.3-gentoo-r2 kernel. I have configured it with Alsa and my sound device (SB Audigy XGamer) built in. Do I need to also tell it to use OSS-Emulation as I haven't built that into the kernel. My sound works but not well. and i haven't installed alsa-oss. I am not quite sure what the 2.6.3 kernel needs for proper support.
Please excuse my ignorance here. I am not just a noob on the forum but a total noob to linux. |
|
Back to top |
|
|
charlieg Advocate
Joined: 30 Jul 2002 Posts: 2149 Location: Manchester UK
|
Posted: Fri Feb 27, 2004 2:04 am Post subject: |
|
|
TheCoop wrote: | get same error, moving /etc/asound.conf and restarting alsasound init script solves it. |
But that's just working around the problem.
No matter, I've tracked down the reason and the fix and logged it as a bug:
https://bugs.gentoo.org/show_bug.cgi?id=43052
It's a one line patch, a missed break; statement. _________________ Want Free games?
Free Gamer - open source games list & commentary
Open source web-enabled rich UI platform: Vexi |
|
Back to top |
|
|
Kymas n00b
Joined: 03 May 2003 Posts: 24
|
Posted: Fri Feb 27, 2004 4:04 am Post subject: |
|
|
I have managed to get the dmix plugin working fine for alsa and oss apps but when I run nwn, which uses the SDL library, everything gets extreamly laggy and the game is unplayable. I have tried using the current gentoo version of SDL and I compiled 1.2.6 specifically for nwn. The gentoo version seemed slightly less laggy but was still unplayable.
I am using the onboard nvidia apu for sound output; I believe I read that this is actually just software ac97 in Linux.
If anyone knows any tips to improve performance please let me know.
Thanks,
Kymas |
|
Back to top |
|
|
Shapierian Tux's lil' helper
Joined: 15 Sep 2003 Posts: 88
|
Posted: Fri Feb 27, 2004 4:30 am Post subject: |
|
|
With just about any cofig liek Neik's for example mplayer gives me:
Code: | AF_pre: af format: 2 bps, 2 ch, 44100 hz, little endian signed int
AF_pre: 44100Hz 2ch Signed 16-bit (Little-Endian)
alsa-init: requested format: 44100 Hz, 2 channels, Signed 16-bit (Little-Endian)alsa-init: soundcard set to default
alsa-init: unable to set periodsize: Invalid argument
Could not open/initialize audio device -> no sound. |
Is there a work around for this I set xmms to use "default" and "-ao alsa9:default" for mplayer. |
|
Back to top |
|
|
Niek Apprentice
Joined: 14 May 2002 Posts: 236 Location: Houten, The Netherlands
|
Posted: Fri Feb 27, 2004 7:24 am Post subject: |
|
|
Shapierian wrote: | With just about any cofig liek Neik's for example mplayer gives me:
(...)
Is there a work around for this I set xmms to use "default" and "-ao alsa9:default" for mplayer. | There's a patch for MPlayer to solve this problem. See https://forums.gentoo.org/viewtopic.php?t=124976 and https://bugs.gentoo.org/show_bug.cgi?id=38476 how to solve this. _________________ Bezoek ook eens de Nederlandstalige Gentoo IRC channel op irc.freenode.net - #gentoo-nl |
|
Back to top |
|
|
charlieg Advocate
Joined: 30 Jul 2002 Posts: 2149 Location: Manchester UK
|
Posted: Fri Feb 27, 2004 10:08 am Post subject: |
|
|
The fix was already incorporated in a silent re-release of alsa-1.0.2; if you're afflicted by this problem you need to 'rm /usr/portage/distfiles/alsa-lib-1.0.2.tar.gz' and re-emerge alsa-lib. This should fix it - it worked for me. _________________ Want Free games?
Free Gamer - open source games list & commentary
Open source web-enabled rich UI platform: Vexi |
|
Back to top |
|
|
kf_man n00b
Joined: 20 Feb 2004 Posts: 21
|
Posted: Fri Feb 27, 2004 6:38 pm Post subject: Multiple sounds work somewhat! |
|
|
I can play XMMS and hear sounds done using aplay. This works ok as I can now here Gaim sounds when I set the sound method to the command "aplay %s." Is there anyway to make kde's sounds work while playing xmms? Thanks. _________________ -Kyle
Linux n00b
System:
HP zt3000
Pentium M 1.6 GHz
1GB PC2700 DDR SDRAM
100GB 5400RPM
Intel audio
ATI Radeon 9000
Realtek 8139
IPW2200
Agere Modem |
|
Back to top |
|
|
TheCoop Veteran
Joined: 15 Jun 2002 Posts: 1814 Location: Where you least expect it
|
Posted: Fri Feb 27, 2004 7:07 pm Post subject: |
|
|
the sound in xine is very crackly when I enable dmix, otherwise it works fine... _________________ 95% of all computer errors occur between chair and keyboard (TM)
"One World, One web, One program" - Microsoft Promo ad.
"Ein Volk, Ein Reich, Ein Führer" - Adolf Hitler
Change the world - move a rock |
|
Back to top |
|
|
charlieg Advocate
Joined: 30 Jul 2002 Posts: 2149 Location: Manchester UK
|
Posted: Fri Feb 27, 2004 11:16 pm Post subject: |
|
|
Does this make the sound quality awful for totem for anybody else other than me? And it also makes rhythmbox crash...
_________________ Want Free games?
Free Gamer - open source games list & commentary
Open source web-enabled rich UI platform: Vexi |
|
Back to top |
|
|
Niek Apprentice
Joined: 14 May 2002 Posts: 236 Location: Houten, The Netherlands
|
Posted: Sat Feb 28, 2004 12:52 pm Post subject: Re: Multiple sounds work somewhat! |
|
|
kf_man wrote: | I can play XMMS and hear sounds done using aplay. This works ok as I can now here Gaim sounds when I set the sound method to the command "aplay %s." Is there anyway to make kde's sounds work while playing xmms? Thanks. | Control Center -> Sound & Multimedia -> System Notifications -> Player Settings and enable "Use external player" (just use aplay as command). _________________ Bezoek ook eens de Nederlandstalige Gentoo IRC channel op irc.freenode.net - #gentoo-nl |
|
Back to top |
|
|
Redeeman l33t
Joined: 25 Sep 2003 Posts: 958 Location: Portugal
|
Posted: Sat Feb 28, 2004 9:42 pm Post subject: |
|
|
TheCoop wrote: | the sound in xine is very crackly when I enable dmix, otherwise it works fine... |
yes, i notice this in pornview :/
and mplayer sometimes plays fast :/ |
|
Back to top |
|
|
Redeeman l33t
Joined: 25 Sep 2003 Posts: 958 Location: Portugal
|
Posted: Sat Feb 28, 2004 9:42 pm Post subject: |
|
|
charlieg wrote: | Does this make the sound quality awful for totem for anybody else other than me? And it also makes rhythmbox crash...
|
you might want to fiddle with the rate parameter, that works on some chips, for example thats needed on my via82xx |
|
Back to top |
|
|
TheCoop Veteran
Joined: 15 Jun 2002 Posts: 1814 Location: Where you least expect it
|
Posted: Sat Feb 28, 2004 10:28 pm Post subject: |
|
|
Redeeman wrote: | you might want to fiddle with the rate parameter, that works on some chips, for example thats needed on my via82xx |
Fiddle with it how? _________________ 95% of all computer errors occur between chair and keyboard (TM)
"One World, One web, One program" - Microsoft Promo ad.
"Ein Volk, Ein Reich, Ein Führer" - Adolf Hitler
Change the world - move a rock |
|
Back to top |
|
|
cca93014 Tux's lil' helper
Joined: 31 Jul 2002 Posts: 77 Location: London, UK
|
Posted: Sun Feb 29, 2004 12:41 pm Post subject: |
|
|
I have this working for XMMS, gAIM and mplayer, but I cant get Gnome sounds to play. Any ideas? |
|
Back to top |
|
|
hjlane3 Guru
Joined: 22 Feb 2003 Posts: 377 Location: Wilmington, DE USA
|
Posted: Sun Feb 29, 2004 11:39 pm Post subject: |
|
|
Working great for ALSA apps, but any oss apps that run or are run with aoss sound EXTREMELY crappy... what's wrong?
Code: | pcm.mixer {
type dmix
ipc_key 1024
slave {
pcm "hw:0,0"
period_time 0
period_size 1024
buffer_size 8192
rate 44100
}
}
pcm.!default {
type plug
slave.pcm "mixer"
}
|
_________________ I wish hell would freeze over already.
EDIT: w00t, it has! |
|
Back to top |
|
|
Redeeman l33t
Joined: 25 Sep 2003 Posts: 958 Location: Portugal
|
Posted: Mon Mar 01, 2004 10:33 am Post subject: |
|
|
i mean try set rate to 48000, that works on my new via82xx.
with aoss crappy. that might have something to do with the rate too, i am not quite sure. sorry |
|
Back to top |
|
|
Niek Apprentice
Joined: 14 May 2002 Posts: 236 Location: Houten, The Netherlands
|
Posted: Tue Mar 02, 2004 6:47 am Post subject: |
|
|
*sigh* I upgraded to alsa-lib 1.0.3, and now my sound isn't working with the asound.conf file. Aplay doesn't play anything and MPlayer crashes. Other people with these problems after upgrading? _________________ Bezoek ook eens de Nederlandstalige Gentoo IRC channel op irc.freenode.net - #gentoo-nl |
|
Back to top |
|
|
cca93014 Tux's lil' helper
Joined: 31 Jul 2002 Posts: 77 Location: London, UK
|
Posted: Tue Mar 02, 2004 6:58 am Post subject: |
|
|
How come people are getting version 1.0.3 of alsa. I just re-synced at got 0.9.8...? |
|
Back to top |
|
|
Niek Apprentice
Joined: 14 May 2002 Posts: 236 Location: Houten, The Netherlands
|
Posted: Tue Mar 02, 2004 7:14 am Post subject: |
|
|
cca93014 wrote: | How come people are getting version 1.0.3 of alsa. I just re-synced at got 0.9.8...? | I'm using the unstable packages (ACCEPT_KEYWORDS="~x86" in make.conf) instead of the stable. _________________ Bezoek ook eens de Nederlandstalige Gentoo IRC channel op irc.freenode.net - #gentoo-nl |
|
Back to top |
|
|
hjlane3 Guru
Joined: 22 Feb 2003 Posts: 377 Location: Wilmington, DE USA
|
Posted: Tue Mar 02, 2004 6:04 pm Post subject: |
|
|
Redeeman wrote: | i mean try set rate to 48000, that works on my new via82xx.
with aoss crappy. that might have something to do with the rate too, i am not quite sure. sorry |
Ok i did that with my intel8x0
mpg123 mp3 would hog the sound card, not letting anything else use it
aoss mpg123 mp3 worked great!
but rhythmbox run with or w/out it still sound horrible _________________ I wish hell would freeze over already.
EDIT: w00t, it has! |
|
Back to top |
|
|
Shiryou Tux's lil' helper
Joined: 23 Jan 2004 Posts: 131 Location: United Kingdom
|
Posted: Wed Mar 03, 2004 2:05 pm Post subject: |
|
|
Well, lets see.... the aplayer multiple sound trick works for me so i guess thats ok. However, im wondering about everything else. The way i see it.... we've had decent enough soundcards for years now so why is such a simple thing like multiple sounds such a pain under linux. Its very poor. I imagine a lot of it is to do with the intel driver. Im using intel8x0 which i've heard is dire. My main machine uses an Nforce board and 5.1 so linux is going nowhere near it.
So.... my question is this. I reckon i understand thi dmix stuff... but how can i get KDE to work with it? The soundsystem selector in the KDE control panel lets me choose Alsa but it doesnt seem to let me play multiple sounds. Im usign kde3.2 witht -arts and +alsa use flagss with a 2.6.2 kernel.
I wonder... if theres a kernel patch for a better intel8x0 or soemthing? Possibly, |
|
Back to top |
|
|
Redeeman l33t
Joined: 25 Sep 2003 Posts: 958 Location: Portugal
|
Posted: Wed Mar 03, 2004 8:41 pm Post subject: |
|
|
hjlane3 wrote: | Redeeman wrote: | i mean try set rate to 48000, that works on my new via82xx.
with aoss crappy. that might have something to do with the rate too, i am not quite sure. sorry |
Ok i did that with my intel8x0
mpg123 mp3 would hog the sound card, not letting anything else use it
aoss mpg123 mp3 worked great!
but rhythmbox run with or w/out it still sound horrible |
applications only supporting oss should use aoss, but native alsa applications _should_ use alsa output device with device 4100 |
|
Back to top |
|
|
tecknojunky Veteran
Joined: 19 Oct 2002 Posts: 1937 Location: Montréal
|
Posted: Thu Mar 04, 2004 11:51 am Post subject: |
|
|
This thread confuse more than it help
Anyhow, when I try to use aplay, I get this Code: | ALSA lib pcm_dmix.c:812:(snd_pcm_dmix_open) unable to open slave
aplay: main:503: audio open error: No such file or directory
|
_________________ (7 of 9) Installing star-trek/species-8.4.7.2::talax. |
|
Back to top |
|
|
|