View previous topic :: View next topic |
Author |
Message |
jobeus n00b
Joined: 17 Mar 2003 Posts: 52
|
Posted: Tue Mar 16, 2004 5:39 am Post subject: How I got my intel8x0 to dmix multiple sources properly. |
|
|
Well, I dunno, maybe me and my buddy are the only ones with this amount of trouble getting mixing working... But I tried 100 different things before this worked. Anyways, after these changes, I can play from two instances of XMMS or XMMS and Mplayer at the same time, no trouble. Yay!
Anyways, here's the configuration files I changed:
/etc/asound.conf :
Code: | pcm.dsp0 {
type plug
slave.pcm "hw:0"
}
ctl.mixer0 {
type hw
card 0
}
|
~/.asoundrc :
Code: | pcm.ossmix {
type dmix
ipc_key 1024
slave {
pcm "hw:0,0"
period_time 0
period_size 1024
buffer_size 8192
}
bindings {
0 0
1 1
}
}
pcm.dsp0 {
type plug
slave.pcm "ossmix"
}
pcm.!default {
type plug
slave.pcm "ossmix"
}
ctl.mixer0 {
type hw
card 0
}
|
And finally in /etc/mplayer.conf, make sure you have this line somewhere :
After this, everything seems to be mixing fine. Lemme know how it works for you!
CREDITS to: http://alsa.opensrc.org/index.php?page=DmixPlugin _________________ http://jobe.ca |
|
Back to top |
|
|
charlieg Advocate
Joined: 30 Jul 2002 Posts: 2149 Location: Manchester UK
|
Posted: Tue Mar 16, 2004 6:54 am Post subject: |
|
|
Search. There is a recent thread all about this in docs,tips,tricks already. _________________ Want Free games?
Free Gamer - open source games list & commentary
Open source web-enabled rich UI platform: Vexi |
|
Back to top |
|
|
jobeus n00b
Joined: 17 Mar 2003 Posts: 52
|
Posted: Tue Mar 16, 2004 7:28 am Post subject: |
|
|
Quote: | But I tried 100 different things before this worked. |
Thanks, been there, done that. As had my buddy this also wasn't working for. Kept hanging XMMS in other situations. This solution fixed it all for me. Thus the additional post. _________________ http://jobe.ca |
|
Back to top |
|
|
hjlane3 Guru
Joined: 22 Feb 2003 Posts: 377 Location: Wilmington, DE USA
|
Posted: Tue Mar 16, 2004 11:45 am Post subject: |
|
|
yay! and now oss apps even sound right using alsa-oss! YAY!
thank you! _________________ I wish hell would freeze over already.
EDIT: w00t, it has! |
|
Back to top |
|
|
allucid Veteran
Joined: 02 Nov 2002 Posts: 1314 Location: atlanta
|
Posted: Fri Jun 25, 2004 12:00 am Post subject: Re: How I got my intel8x0 to dmix multiple sources properly. |
|
|
OSS emulation doesnt mix at all for me.
jobeus wrote: |
And finally in /etc/mplayer.conf, make sure you have this line somewhere :
|
mplayer will not accept that option for audio out.
Code: | allucid:[blackmamba]$ mplayer -ao help
MPlayer 1.0pre4-3.3.2 (C) 2000-2004 MPlayer Team
CPU: Intel Pentium 4/Xeon/Celeron Foster 2607 MHz (Family: 8, Stepping: 9)
Detected cache-line size is 64 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
Reading config file /usr/share/mplayer/mplayer.conf
Reading config file /home/allucid/.mplayer/config
Available audio output drivers:
mpegpes Mpeg-PES audio output
oss OSS/ioctl audio output
alsa1x ALSA-1.x audio output
nas NAS audio output
sdl SDLlib audio output
null Null audio output
pcm RAW PCM/WAVE file writer audio output
plugin Plugin audio output |
any ideas? I have intel8x0 on all of my machines and I can't get it to work completely (OSS emulation screws everything up) with dmix. |
|
Back to top |
|
|
gunkyman n00b
Joined: 02 Jun 2004 Posts: 19
|
Posted: Fri Jun 25, 2004 1:54 am Post subject: |
|
|
you might need ao=alsa1x:ossmix if you have alsa 1.x |
|
Back to top |
|
|
allucid Veteran
Joined: 02 Nov 2002 Posts: 1314 Location: atlanta
|
Posted: Fri Jun 25, 2004 2:45 am Post subject: |
|
|
Thanks! now that works.
Is dmix supposed to work with oss emulation or am I trying to configure something that's not possible? |
|
Back to top |
|
|
vinayg n00b
Joined: 06 Nov 2003 Posts: 64 Location: IIT Kanpur, India
|
Posted: Sun Jun 27, 2004 12:39 pm Post subject: |
|
|
thanks this works...
but there is a problem......after making all the files u mentioned , my songs are playing faster.....
its quite a noticable difference...
any help for it??
ciao |
|
Back to top |
|
|
|