Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
alsa sound mixing aka dmix (not arts or esd needed)
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... 6, 7, 8 ... 10, 11, 12  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
goulash
n00b
n00b


Joined: 23 Apr 2004
Posts: 47
Location: Perth, Western Australia

PostPosted: Mon Jul 05, 2004 2:56 am    Post subject: Reply with quote

the only app i can get to work properly using alsa oss emulation is firefox. quake3 and teamspeak dont work at all. ive copied the guide exactly, and have an intel_i8x0.
Back to top
View user's profile Send private message
Redeeman
l33t
l33t


Joined: 25 Sep 2003
Posts: 957
Location: Denmark

PostPosted: Mon Jul 05, 2004 8:41 am    Post subject: Reply with quote

strange.... anyway :) i cant test much now, since i have a via 82xx soundcard now, which does hardware mixing
_________________
Sandberg Enterprises
Back to top
View user's profile Send private message
Wooff
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jun 2004
Posts: 101
Location: LB.CZ.EU

PostPosted: Sat Jul 10, 2004 11:36 pm    Post subject: function mixing... ((-: (xmms, mplayer, gmplayer) Reply with quote

Hi, at last its work for me (I spend 3 days with it...)
Thankx to everybody who sent here his/her ~/.asoundrc, mplayer.conf, ...

I have Mitac 8640 notebook with i8x0 soundcard (Sis962)
I compiled support into kernel. Followed alsa how-to (in doc section)

this is mine ~/.asoundrc
and nothing more ... like seq or binds... (it is just not needed)
Quote:
pcm.!default {
type plug
slave.pcm "dmixer"
}

pcm.dmixer {
type dmix
ipc_key 1024 # This must be a unique IPC key (see ipcs output)
ipc_key_add_uid true # UID will be added to IPC key
slave {
pcm "hw:0,0"
period_time 0
period_size 1024 # Must be power of 2 for alsa-oss
buffer_size 8192 # ditto
rate 44100
}
}

and mplayer config
simple alsa1x doesnot work (? default is not default?)
Quote:
wooff@Holly wooff $ cat /etc/mplayer.conf | grep ao=
ao=alsa1x:default # To specify default audio driver (see -ao help for

/etc/modules.d/alsa
its classic one for i8x0 sound card
Quote:
alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss

options snd device_mode=0666
alias snd-card-0 snd-intel8x0
alias sound-slot-0 snd-intel8x0

~/.xmms/config
this is defalt one I think ...
Quote:
[ALSA]
buffer_time=500
period_time=50
mmap=TRUE
pcm_device=default
mixer_card=0
mixer_device=PCM
soft_volume=FALSE
volume_left=100
volume_right=100

~/.mplayer/gui.conf
This is conf file for gMPlayer !! I really dont know why it is separated file.
Quote:
ao_driver = "alsa1x:default"
ao_volnorm = "no"
ao_surround = "no"
ao_extra_stereo = "no"
ao_extra_stereo_coefficient = "1.000000"


Its perfect now ((-:
Always look on the bright side of the live ((-:
W
Back to top
View user's profile Send private message
dmitrio
Tux's lil' helper
Tux's lil' helper


Joined: 10 Dec 2002
Posts: 115
Location: Pago Pago

PostPosted: Wed Jul 21, 2004 12:19 pm    Post subject: :. copied to gentoo-wiki.com Reply with quote

I have copied this HOWTO, with permission of Redeeman, fafhrd, Zoltan, allex87, 00420, Frank Barknecht <fbarATfootils.org>, to gentoo-wiki.com
http://gentoo-wiki.com/HOWTO_ALSA_sound_mixer_aka_dmix
If you see anything that should be added or changed, feel free to do so.

Thank you for a great HOWTO.
_________________

... Leaving ground, destination is unknown,
into the darkness and far away from home,
Will your dream come true and what will you find,
when fate is your guide ...
Back to top
View user's profile Send private message
Given M. Sur
l33t
l33t


Joined: 03 Feb 2004
Posts: 648
Location: No such file or directory

PostPosted: Wed Jul 28, 2004 5:19 am    Post subject: Reply with quote

mplayer 1.0_pre5-r1 and above now use just "alsa" instead of "alsa1x:default" or "alsa9:default".

I've already updated the wiki.
_________________
What is the best [insert-type-of-program-here]?
Back to top
View user's profile Send private message
dmitrio
Tux's lil' helper
Tux's lil' helper


Joined: 10 Dec 2002
Posts: 115
Location: Pago Pago

PostPosted: Wed Jul 28, 2004 11:57 am    Post subject: Reply with quote

00420 wrote:
mplayer 1.0_pre5-r1 and above now use just "alsa" instead of "alsa1x:default" or "alsa9:default".

I've already updated the wiki.

roger that
tnx
_________________

... Leaving ground, destination is unknown,
into the darkness and far away from home,
Will your dream come true and what will you find,
when fate is your guide ...
Back to top
View user's profile Send private message
stoffe
n00b
n00b


Joined: 13 Mar 2004
Posts: 45

PostPosted: Thu Jul 29, 2004 7:40 pm    Post subject: Reply with quote

Worked right out of the box. Emerged alsa-oss, changed settings for xmms and mplayer and both just played. I have yet to try more applications, but just wanted to pop my head in and say thanks for a great HOWTO! Been wanting this for quite a long time. Buh-bye arts! (Actually, I've set arts to use this as well for now, and that seems to work too, at least until I can see if I want to skip arts completely).
Back to top
View user's profile Send private message
ranmakun
Guru
Guru


Joined: 06 Nov 2002
Posts: 372
Location: Buenos Aires - Argentina

PostPosted: Fri Jul 30, 2004 7:23 pm    Post subject: Reply with quote

Thanks for this HOWTO, very nice.
For me it worked great, but there is one problem, stepmania complaints:
Quote:

Couldn't load driver ALSA: dsnd_pcm_open: Device or resource busy
Mixing 0.000000 ahead in 0 Mix() calls
Couldn't load driver ALSA-sw: dsnd_pcm_open: Device or resource busy
Mixing 0.000000 ahead in 0 Mix() calls
Couldn't load driver OSS: RageSound_OSS: Couldn't open /dev/dsp: Device or resource busy
Language:
Theme: default
Error: Couldn't find a sound driver that works


This is when I have artsd on. However, with artsd on, I can play a movie with xine and alsa, or hear music with xmms and the alsa driver. I don't see whats the difference.
Does anyone know whats happening?
Back to top
View user's profile Send private message
agent_jdh
Veteran
Veteran


Joined: 08 Aug 2002
Posts: 1779
Location: Scotland

PostPosted: Sun Aug 01, 2004 1:01 am    Post subject: Reply with quote

I've just ripped out my TB Santa Cruz and enabled the nForce2 audio on my mobo, this thread (meesy though it may be) has proven invaluable. Thanks guys.

A couple of things I have noticed-

1. In mplayer.conf (and mplayerplug-in.conf), alsa output only works if I use the option

Code:
ao=alsa:device=default


That's with mplayer-1.0_pre5-r2

2. gmplayer still does not work with the alsa device (even with the option as above in gui.conf), I need to use OSS but it works and it seems this is a gmplayer problem.

3. Xine and XMMS work fine with the default ALSA driver option selected.

I don't use that many sound apps so this is fine with me - although having read of some ppl with Firefox issues, I may find something in the future.

One other thing, what's with the ipc_key option in the asound file?
_________________
Jingle Jangle Jewellery
Back to top
View user's profile Send private message
saintdev
n00b
n00b


Joined: 13 Jul 2004
Posts: 60
Location: CO, USA

PostPosted: Fri Aug 06, 2004 7:49 am    Post subject: Reply with quote

Doesn't work at all for me. ALSA works just fine, but I can still only play one sound at a time. I'm trying to use XMMS and Gaim at the same time (so I'm playing sounds through aplay), but it doesn't work. aplay just hangs waiting for the sound device until I stop XMMS.
_________________
> SELECT `signature` FROM `members` WHERE `user_name`='saintdev';
0 rows returned.
Back to top
View user's profile Send private message
genstef
Retired Dev
Retired Dev


Joined: 13 Jun 2004
Posts: 668
Location: M/Bay/Germany

PostPosted: Sun Aug 08, 2004 5:39 pm    Post subject: Reply with quote

How can i get this working for multiple users?
alsa shows the following error:

Code:
alsa-init: soundcard set to dmixer
ALSA lib pcm_direct.c:203:(make_local_socket) connect failed: /tmp/alsa-dmix-22490-1091986393-708633: Permission denied
ALSA lib pcm_dmix.c:897:(snd_pcm_dmix_open) unable to connect client
alsa-init: playback open error: Permission denied



Is there also a way to get udev to create my sound devs with 660 so that I can actually use it for other users, too. I dunno where udev knows the user from ..
Back to top
View user's profile Send private message
Redeeman
l33t
l33t


Joined: 25 Sep 2003
Posts: 957
Location: Denmark

PostPosted: Sun Aug 08, 2004 5:59 pm    Post subject: Reply with quote

add users to sound group, but if you insist, look at
/etc/udev/permissions.d/<the file>
_________________
Sandberg Enterprises
Back to top
View user's profile Send private message
genstef
Retired Dev
Retired Dev


Joined: 13 Jun 2004
Posts: 668
Location: M/Bay/Germany

PostPosted: Sun Aug 08, 2004 6:56 pm    Post subject: Reply with quote

The problem is that the users are in the "audio" group but they cannot access the files because they are initially 600 ..
Back to top
View user's profile Send private message
theonlymcc
Apprentice
Apprentice


Joined: 16 Sep 2003
Posts: 274
Location: NC

PostPosted: Tue Aug 10, 2004 3:02 pm    Post subject: Reply with quote

I have a Dell I5150 with an i8x0 card. When I use the settings at the beginning of the thread, it works. I can use mulitple sounds at once, mainly with XMMS and Gaim. But the problems are: 1) XMMS uses memory (for buffering??) and doesn't give it back. So the music stops midway through. 2) Sometimes the music suddenly gets gittery. 3) XMMS won't play but one song. It won't go down the playlist. I have to click each song. It only does it when using the .asoundrc settings. Any suggestions?
Back to top
View user's profile Send private message
codergeek42
Bodhisattva
Bodhisattva


Joined: 05 Apr 2004
Posts: 5142
Location: Anaheim, CA (USA)

PostPosted: Tue Aug 10, 2004 7:00 pm    Post subject: Reply with quote

Redeeman wrote:
strange.... anyway :) i cant test much now, since i have a via 82xx soundcard now, which does hardware mixing
Really? I have an onboard VIA 82xx and it doesn't do hardware mixing...
_________________
~~ Peter: Programmer, Mathematician, STEM & Free Software Advocate, Enlightened Agent, Transhumanist, Fedora contributor
Who am I? :: EFF & FSF
Back to top
View user's profile Send private message
Redeeman
l33t
l33t


Joined: 25 Sep 2003
Posts: 957
Location: Denmark

PostPosted: Tue Aug 10, 2004 7:31 pm    Post subject: Reply with quote

mine does :P
_________________
Sandberg Enterprises
Back to top
View user's profile Send private message
codergeek42
Bodhisattva
Bodhisattva


Joined: 05 Apr 2004
Posts: 5142
Location: Anaheim, CA (USA)

PostPosted: Tue Aug 10, 2004 8:23 pm    Post subject: Reply with quote

Redeeman wrote:
mine does :P
is there something you have to set or configure?
_________________
~~ Peter: Programmer, Mathematician, STEM & Free Software Advocate, Enlightened Agent, Transhumanist, Fedora contributor
Who am I? :: EFF & FSF
Back to top
View user's profile Send private message
tecknojunky
Veteran
Veteran


Joined: 19 Oct 2002
Posts: 1937
Location: Montréal

PostPosted: Wed Aug 11, 2004 7:10 am    Post subject: Reply with quote

me again.

My 1st post in this thread is dated Oct 12, 2003. Only today did i manage to make dmix on one of my box (tested using aplay some.wav & twice). Problem is, no other apps would work.

On that particular box, i use Enlightenment, and need esound to get the ear candy. To make short story shorter, I enabled esd in xmms, xine and I can now play everything simultaniously.

So, I'm wondering if dmix is that useful. Esound seem to do the job pretty well.
_________________
(7 of 9) Installing star-trek/species-8.4.7.2::talax.
Back to top
View user's profile Send private message
Redeeman
l33t
l33t


Joined: 25 Sep 2003
Posts: 957
Location: Denmark

PostPosted: Wed Aug 11, 2004 2:15 pm    Post subject: Reply with quote

i didnt set anything
_________________
Sandberg Enterprises
Back to top
View user's profile Send private message
tecknojunky
Veteran
Veteran


Joined: 19 Oct 2002
Posts: 1937
Location: Montréal

PostPosted: Thu Aug 12, 2004 12:08 am    Post subject: Reply with quote

This must be the most ridiculous feature to set that just refuse to work. It's frustrating and I want to smack someone :evil: .

I can play xmms as root and E will play it's sound them at the same time. I have recursively chmoded 777 everything in /dev, but a normal user get:
Quote:
xmms
ALSA lib pcm_direct.c:203:(make_local_socket) connect failed: /tmp/alsa-dmix-1281-1092269295-140543: Permission non accordée
ALSA lib pcm_dmix.c:897:(snd_pcm_dmix_open) unable to connect client

** WARNING **: alsa_setup(): Failed to open pcm device (default): Permission non accordée
ALSA lib pcm_direct.c:203:(make_local_socket) connect failed: /tmp/alsa-dmix-1281-1092269295-140543: Permission non accordée
ALSA lib pcm_dmix.c:897:(snd_pcm_dmix_open) unable to connect client

** WARNING **: alsa_setup(): Failed to open pcm device (default): Permission non accordée
Permission denied. What the fuck. Why can't it be simple? It makes no sense.
_________________
(7 of 9) Installing star-trek/species-8.4.7.2::talax.
Back to top
View user's profile Send private message
theonlymcc
Apprentice
Apprentice


Joined: 16 Sep 2003
Posts: 274
Location: NC

PostPosted: Thu Aug 12, 2004 11:55 pm    Post subject: Reply with quote

Ensure that the users in included in the audio group would be my guess. But I still can't figure out why XMMS with dmix causes the music(mp3, wav, cd audio, etc) to become gittery. I have resolved my other 2 issues. Any one having problems with the music becoming gittery with demix?
Back to top
View user's profile Send private message
Redeeman
l33t
l33t


Joined: 25 Sep 2003
Posts: 957
Location: Denmark

PostPosted: Fri Aug 13, 2004 2:19 pm    Post subject: Reply with quote

set the rate proper and it shouldnt glitch
_________________
Sandberg Enterprises
Back to top
View user's profile Send private message
tecknojunky
Veteran
Veteran


Joined: 19 Oct 2002
Posts: 1937
Location: Montréal

PostPosted: Fri Aug 13, 2004 5:50 pm    Post subject: Reply with quote

theonlymcc wrote:
Ensure that the users in included in the audio group would be my guess.
I have deleted all gentoo's irrelevant users and groups, including the audio group. Everything is chmoded to 777, how can groups can have any effect then?

theonlymcc wrote:
But I still can't figure out why XMMS with dmix causes the music(mp3, wav, cd audio, etc) to become gittery. I have resolved my other 2 issues. Any one having problems with the music becoming gittery with demix?
I think Redeeman is right. You can try to set the bitrate at 44800.
_________________
(7 of 9) Installing star-trek/species-8.4.7.2::talax.
Back to top
View user's profile Send private message
TheWoopWoop
n00b
n00b


Joined: 10 Feb 2004
Posts: 30

PostPosted: Sat Aug 14, 2004 4:53 am    Post subject: Reply with quote

Thanks Wooff.

Your config was the one that made it all come together. This is so much nicer than arts!
Back to top
View user's profile Send private message
cato`
Guru
Guru


Joined: 03 Jun 2002
Posts: 430
Location: Norway, Trondheim

PostPosted: Sat Aug 14, 2004 1:36 pm    Post subject: Reply with quote

I got it working on my intel8x0 laptop.

The only problem is with skype ... it stoped working. Any solution?
_________________
Don't mess with the Penguin.
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
Goto page Previous  1, 2, 3 ... 6, 7, 8 ... 10, 11, 12  Next
Page 7 of 12

 
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