Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Multi-user combi of arts, jackd, dmix ?!
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
JeroenV
Guru
Guru


Joined: 16 Jul 2002
Posts: 447
Location: Amsterdam / Hamburg

PostPosted: Thu Jan 22, 2004 11:40 pm    Post subject: Multi-user combi of arts, jackd, dmix ?! Reply with quote

Ok, I thought to be smart and get the best of 3 worlds:
1) use jackd for ardour (and possibly xmms through xmms-jack)
2) use dmix for desktop-sounds (licq)
3) use arts for my girlfriend's KDE session started from gdmflexi

The reason for wanting this is that it provides maximum flexibility without reconfiguring for any of the 3 uses.
I have an ens1371 card and 2.6.1-kernel alsa, which has 2 DACs, DAC1 (hw:0,0) and DAC2 (hw:0,1).

My idea is this setup:
1) run jackd on hw:0,0
2) define a dmix'ed alsa pcm slave that mixes everything directed to alsa device dmixed to hw:0,1
3) run artsd on the dmixed device
4) be able to use aplay -d dmixed (i.e. it is mixed together with the output of artsd)

So far I got everything working, except that artsd keeps silent, although the debug-output (artsplay -l0 ....) shows that everything should work fine.

This is my asound.conf
Code:

pcm.dsp0 {
   type hw
   card 0
   device 0
}

pcm.!default {
   type plug
   slave.pcm "dmixer"
}

pcm.dmixer  {
   type dmix
   ipc_key 1024
   ipc_key_add_uid true
   slave {
      pcm {
         type hw
         card 0
         device 1
      }
      period_time 0
      period_size 1024
      buffer_size 8192
      periods 128
      format S16_LE
      rate 44100
   }
   bindings {
      0 0
      1 1
   }
}

ctl.card0 {
   type hw
   card 0
}


Any ideas how to get artsd working :?:

Arternatively I was considering to define an alsa-plugin for jackd, as explained on http://www.alsa-project.org/alsa-doc/doc-php/asoundrc.php3?module=ens1371
,but then I'd need to have the jackd sockets available to all users... Is there any way to achieve this :?:
_________________
Cheers 8)
Jeroen
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
May The Source be with you!
Back to top
View user's profile Send private message
samppa
n00b
n00b


Joined: 15 Jun 2002
Posts: 69
Location: Finland

PostPosted: Sat Jan 24, 2004 8:35 am    Post subject: Hack to make artsd work with dmix Reply with quote

I was searching for info about making artsd work with dmix and found out this Alsa wiki page:

http://alsa.opensrc.org/index.php?page=DmixPlugin

On bottom half of the page there is a hack to make artsd work with dmix, but it looks too much a hack for my liking, so I haven't tried it yet. It would be nice to hear experiences from other people who tried it though.

According to kde developers chances to make artsd work with dmix are very small. It would be nice if kde could use dmix without running artsd at all, or if artsd had a passthrough feature so that it would just pass everything to alsa dmix plugin.

If someone gets artsd working with the dmix plugin, let us hear :D
Back to top
View user's profile Send private message
samppa
n00b
n00b


Joined: 15 Jun 2002
Posts: 69
Location: Finland

PostPosted: Sat Jan 24, 2004 8:56 am    Post subject: Reply with quote

There is also a bug report of this problem of not being able to use dmix device for artsd:

http://bugs.kde.org/show_bug.cgi?id=70802

If you want to have this working, go show it your votes :)
Back to top
View user's profile Send private message
JeroenV
Guru
Guru


Joined: 16 Jul 2002
Posts: 447
Location: Amsterdam / Hamburg

PostPosted: Sat Jan 24, 2004 12:00 pm    Post subject: Reply with quote

Thanks,

I voted for the bug indeed, I share your thoughts about the dirty hack too. My girlfriend is not so much in dire need for sound, and I myself don't use KDE anyway, so I'll leave it at that for now...
_________________
Cheers 8)
Jeroen
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
May The Source be with you!
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