Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How I got my intel8x0 to dmix multiple sources properly.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
jobeus
n00b
n00b


Joined: 17 Mar 2003
Posts: 52

PostPosted: Tue Mar 16, 2004 5:39 am    Post subject: How I got my intel8x0 to dmix multiple sources properly. Reply with quote

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 :
Code:
ao=alsa9:ossmix


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


Joined: 30 Jul 2002
Posts: 2149
Location: Manchester UK

PostPosted: Tue Mar 16, 2004 6:54 am    Post subject: Reply with quote

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


Joined: 17 Mar 2003
Posts: 52

PostPosted: Tue Mar 16, 2004 7:28 am    Post subject: Reply with quote

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


Joined: 22 Feb 2003
Posts: 377
Location: Wilmington, DE USA

PostPosted: Tue Mar 16, 2004 11:45 am    Post subject: Reply with quote

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


Joined: 02 Nov 2002
Posts: 1314
Location: atlanta

PostPosted: Fri Jun 25, 2004 12:00 am    Post subject: Re: How I got my intel8x0 to dmix multiple sources properly. Reply with quote

OSS emulation doesnt mix at all for me.

jobeus wrote:

And finally in /etc/mplayer.conf, make sure you have this line somewhere :

Code:
ao=alsa9:ossmix


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


Joined: 02 Jun 2004
Posts: 19

PostPosted: Fri Jun 25, 2004 1:54 am    Post subject: Reply with quote

you might need ao=alsa1x:ossmix if you have alsa 1.x
Back to top
View user's profile Send private message
allucid
Veteran
Veteran


Joined: 02 Nov 2002
Posts: 1314
Location: atlanta

PostPosted: Fri Jun 25, 2004 2:45 am    Post subject: Reply with quote

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


Joined: 06 Nov 2003
Posts: 64
Location: IIT Kanpur, India

PostPosted: Sun Jun 27, 2004 12:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks 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