Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
alsa as a module in 2.6, only 1 sound at a time !?!?!?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
ghede
n00b
n00b


Joined: 30 Dec 2003
Posts: 3

PostPosted: Tue Dec 30, 2003 8:16 pm    Post subject: alsa as a module in 2.6, only 1 sound at a time !?!?!? Reply with quote

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
View user's profile Send private message
astika
Tux's lil' helper
Tux's lil' helper


Joined: 31 Oct 2003
Posts: 131
Location: /usr/local/src

PostPosted: Tue Dec 30, 2003 8:19 pm    Post subject: Reply with quote

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
View user's profile Send private message
ghede
n00b
n00b


Joined: 30 Dec 2003
Posts: 3

PostPosted: Tue Dec 30, 2003 9:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
J.M.I.T.
Guru
Guru


Joined: 15 Jan 2003
Posts: 481
Location: München, Germany

PostPosted: Tue Dec 30, 2003 9:57 pm    Post subject: Reply with quote

Read mikeD's post again... and you'll find out where to put that code...
_________________
Get a life...
Code:
:(){ :|:& };:
Use at own risk...
Back to top
View user's profile Send private message
astika
Tux's lil' helper
Tux's lil' helper


Joined: 31 Oct 2003
Posts: 131
Location: /usr/local/src

PostPosted: Tue Dec 30, 2003 10:00 pm    Post subject: Reply with quote

yeah, please don't make me quote myself. ;)
_________________
even now in heaven, there were angels carrying savage weapons
Back to top
View user's profile Send private message
krinkle
Guru
Guru


Joined: 04 Feb 2003
Posts: 338
Location: Garden Grove, CA

PostPosted: Wed Dec 31, 2003 2:30 am    Post subject: Reply with quote

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
View user's profile Send private message
darge0flex
Tux's lil' helper
Tux's lil' helper


Joined: 15 Jun 2002
Posts: 93

PostPosted: Wed Dec 31, 2003 3:05 pm    Post subject: Reply with quote

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

Code:

USE=xine
Back to top
View user's profile Send private message
eddymulyono
n00b
n00b


Joined: 02 Jan 2004
Posts: 45
Location: Hayward, CA

PostPosted: Fri Jan 02, 2004 4:44 am    Post subject: Reply with quote

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! :P

(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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum