LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-31-2004, 01:48 AM   #1
Ephracis
Senior Member
 
Registered: Sep 2004
Location: Sweden
Distribution: Ubuntu, Debian
Posts: 1,109

Rep: Reputation: 50
Multi-source sound


When i use XMMS, i also want to use other sound sources, at the same time i hear the music. Like continueing to hear the music while i still here the sound from amsn. I've tried the arts and esound soundservers and i don't like the delay they give to every sound.
 
Old 12-31-2004, 08:00 AM   #2
kostian
Member
 
Registered: Jul 2004
Location: LT
Posts: 150

Rep: Reputation: 15
you can use alsa dmix plugin.
http://alsa.opensrc.org/index.php?page=DmixPlugin
heres my ~/.asoundrc
Code:
pcm.!default {
    type plug
    slave.pcm "dmixer"
}
 
pcm.dsp0 {
    type plug
    slave.pcm "dmixer"
}
 
pcm.dmixer  {
    type dmix
    ipc_key 1024
    slave {
        pcm "hw:0,0"
        period_time 0
        period_size 1024
        buffer_size 32768
        #periods 128
        #rate 44100
    }
    bindings {
        0 0
        1 1
    }
}
 
ctl.mixer0 {
    type hw
    card 0
}
in xmms output configuration select ALSA, audio device - default and be sure to deselect mmap mode in advanced tab.
and for amsn select aplay for sound command(if it has such option).
and you should be able to hear notifications while xmms is playing.
 
Old 12-31-2004, 11:01 AM   #3
Ephracis
Senior Member
 
Registered: Sep 2004
Location: Sweden
Distribution: Ubuntu, Debian
Posts: 1,109

Original Poster
Rep: Reputation: 50
Thank you.

Will it work for every program or just the one who supports it?
 
Old 01-01-2005, 12:49 PM   #4
kostian
Member
 
Registered: Jul 2004
Location: LT
Posts: 150

Rep: Reputation: 15
for any program that can use ALSA for sound output
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
open source multi-WAN router lothario Linux - Networking 3 11-24-2005 05:31 AM
Is there anyting can enable multi sound stream???? piggyaugu Linux - Software 5 05-27-2005 02:37 PM
Problem about multi-sound cain_eve Slackware 6 04-09-2005 09:27 PM
how can multi program share one sound card duzhenhuan Linux - Hardware 1 04-11-2004 08:05 AM
[how to??] multi-chanel sound ???!!! Tomkooo Linux - General 0 01-22-2004 08:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration