Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Phonon and 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
piejagr
n00b
n00b


Joined: 28 Jan 2008
Posts: 35
Location: Oborniki, Poland

PostPosted: Thu Jun 26, 2008 10:41 pm    Post subject: Phonon and dmix Reply with quote

Hi

I'm wondering how to make phonon use settings in .asoundrc and playback trough properly set dmix, normal alsa apps use it very good but phonon is making problems.
Is there any way to dmix at the same time internet browser (firefox with aoss), juk and some other apps in the same time? In old kde and gnome it's working out of the box but I don't know what's the problem with KDE4 and phonon.

Could somebody give some tip or a resolution to this problem?

Thanks in advance
Back to top
View user's profile Send private message
drizzt
Guru
Guru


Joined: 21 Jul 2002
Posts: 428

PostPosted: Sun Dec 21, 2008 5:46 pm    Post subject: Reply with quote

I'm interested in that matter, too.
Since KDE4 my audio is effectively unusable since phonon takes over the sound hardware and thats it.
_________________
People don't have to earn my respect. I offer my respect to them, but be careful to lose my respect...
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5910

PostPosted: Sun Dec 21, 2008 5:54 pm    Post subject: Reply with quote

a bit of topic, how is phonon in regards to sound handling? arts is crap.
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
drizzt
Guru
Guru


Joined: 21 Jul 2002
Posts: 428

PostPosted: Sun Dec 21, 2008 5:59 pm    Post subject: Reply with quote

to be honest:
IMHO phonon is even more crap, see my post before.
before my upgrade to kde4 I could at least play more than 1 stream at a time. ...
Now with the same system( no alsa config changed !) phonon blocks audio device and thats it.
_________________
People don't have to earn my respect. I offer my respect to them, but be careful to lose my respect...
Back to top
View user's profile Send private message
Gusar
Advocate
Advocate


Joined: 09 Apr 2005
Posts: 2665
Location: Slovenia

PostPosted: Sun Dec 21, 2008 6:59 pm    Post subject: Reply with quote

Why do you need aoss for firefox? Flash has supported alsa for quite some time now.

For alsa in general, I've found you have the least problems without trying to tweak anything and let alsa do it's own thing out of the box. Or is there a specific reason you need to have an .asoundrc?
Back to top
View user's profile Send private message
drizzt
Guru
Guru


Joined: 21 Jul 2002
Posts: 428

PostPosted: Sun Dec 21, 2008 8:50 pm    Post subject: Reply with quote

after some time spend on google I put together this .asoundrc which makes spdif working with dmix(and regarding to original author) and mic input.
Code:

pcm.!default {
   type plug slave.pcm "mic"
}
# this is needed for the mic
pcm.card0 {
   type hw card 0
}
# this enables the mic
pcm.mic {
   type asym playback.pcm "dmixer" capture.pcm "card0"
}
# dmix output over spdif
pcm.dmixer {
   type dmix
   ipc_key 1024 # must be unique!
   ipc_perm 0660 # sound for everybody (at least in your group)
   slave {
      pcm "hw:0,1"
      channels 6
      period_time 0
      period_size 512
      buffer_time 0
      buffer_size 4096
   }
   bindings {
      0 0 # map from 0 to 0
      1 1 # map from 1 to 1
   }
   hint {
      show on
      description "Onboard Soundcard"
   }
}

Here the important lines:
under pcm.dmixer the line pcm denotes the physical output device
the "hint" section makes your dmix entry USABLE for PHONON !!! (you can select it after restarting alsa)

With this .asoundrc I can use any sound-source at any type together with spdif output
_________________
People don't have to earn my respect. I offer my respect to them, but be careful to lose my respect...
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