View previous topic :: View next topic |
Author |
Message |
ghede n00b
Joined: 30 Dec 2003 Posts: 3
|
Posted: Tue Dec 30, 2003 8:16 pm Post subject: alsa as a module in 2.6, only 1 sound at a time !?!?!? |
|
|
Ok, I have alsa built in the kernel as a module, emerged alsa-lib && alsa-utils, configured sound card in /etc/conf.d/alsa, added alsa with rc-update, ... you name it, I've done it :p
My problem is: I can appearantly play only one sound at a time, for example, when I'm running gaim and running xmms, then my I don't here my gaim sounds, but then I stop my song it begins playing all the gaim sounds it didn't before, same problem with rhythmbox
My alsa kernel configuration:
<M> Advanced Linux Sound Architecture
<M>Sequencer Support
< >Sequencer Dummy Support
[*] OSS API Emulation
<M> OSS Mixer API
<M> OSS PCM API
[*] OSS Sequencer API |
|
Back to top |
|
|
astika Tux's lil' helper
Joined: 31 Oct 2003 Posts: 131 Location: /usr/local/src
|
Posted: Tue Dec 30, 2003 8:19 pm Post subject: |
|
|
alsa
Code: | mdefrees@doubleday mdefrees $ cat /etc/asound.conf
pcm.!default {
type plug
slave.pcm "dmix"
} |
gaim
Tool > Preferences > Sounds > Sound Method
Method: Command
Sound command: aplay -Dplug:dmix %s
restart, enjoy. this currently works for me with XMMS (using alsa plugin) and
gaim. might work or not work with others, this should get you started at least. _________________ even now in heaven, there were angels carrying savage weapons |
|
Back to top |
|
|
ghede n00b
Joined: 30 Dec 2003 Posts: 3
|
Posted: Tue Dec 30, 2003 9:22 pm Post subject: |
|
|
Hmm, and where do I put that alsa code??
Also, with rhythmbox, when I try to play a song it freezes for like 10sec or so, when I double click on a song when one is playing it crashes, any idea's on that one? |
|
Back to top |
|
|
J.M.I.T. Guru
Joined: 15 Jan 2003 Posts: 481 Location: München, Germany
|
Posted: Tue Dec 30, 2003 9:57 pm Post subject: |
|
|
Read mikeD's post again... and you'll find out where to put that code... _________________ Get a life...
Use at own risk... |
|
Back to top |
|
|
astika Tux's lil' helper
Joined: 31 Oct 2003 Posts: 131 Location: /usr/local/src
|
Posted: Tue Dec 30, 2003 10:00 pm Post subject: |
|
|
yeah, please don't make me quote myself. _________________ even now in heaven, there were angels carrying savage weapons |
|
Back to top |
|
|
krinkle Guru
Joined: 04 Feb 2003 Posts: 338 Location: Garden Grove, CA
|
Posted: Wed Dec 31, 2003 2:30 am Post subject: |
|
|
you might want to try running esd (aka esound) or arts (kde thing though) too. it will let you have several sounds at once. |
|
Back to top |
|
|
darge0flex Tux's lil' helper
Joined: 15 Jun 2002 Posts: 93
|
Posted: Wed Dec 31, 2003 3:05 pm Post subject: |
|
|
ghede wrote: | Hmm, and where do I put that alsa code??
Also, with rhythmbox, when I try to play a song it freezes for like 10sec or so, when I double click on a song when one is playing it crashes, any idea's on that one? |
Compile rhythmbox with
|
|
Back to top |
|
|
eddymulyono n00b
Joined: 02 Jan 2004 Posts: 45 Location: Hayward, CA
|
Posted: Fri Jan 02, 2004 4:44 am Post subject: |
|
|
ghede wrote: | Hmm, and where do I put that alsa code??
Also, with rhythmbox, when I try to play a song it freezes for like 10sec or so, when I double click on a song when one is playing it crashes, any idea's on that one? |
maybe because you didn't configure gstreamer correctly. By default, rhythmbox USEs gstreamer. Stable gstreamer (the one in Portage) doesn't have ALSA support. It has OSS and ESD/esound support.
You might need to emerge them individually with `emerge media-plugins/gst-plugins-esd` and/or `emerge media-plugins/gst-plugins-oss`.
After these plugins are merged to your system, you can run `gstreamer-properties` to choose the desirable audio out.
Good luck!
(All that should work fine with kernel 2.4. I'm struggling to get esound to work with gentoo-dev-sources-2.6.0)
-Eddy |
|
Back to top |
|
|
|