You are not logged in.

1

Friday, June 27th 2008, 11:24am

Phonon and dmix - how to do it?

I'm getting tired of this KDE4, I set up a dmix with asound config files and everything is working fine except phonon. I'm thinking that this phonon is trying to control my computer cause it doesn't go according to what I have configured earlier. I won't say about other things that I don't like in KDE4 but if I won't be able to force phonon to tolerate my sound settings in asound conf then whole KDE4 will land in my garbage bin.

Does someone know how to get it working with dmix?

My distro: Gentoo

atrox

Beginner

Posts: 27

Location: Estonia

Occupation: administering FreeBSD

  • Send private message

2

Sunday, August 31st 2008, 12:14pm

I guess you've already found the answer - http://phonon.kde.org/cms/1032. But my question is about the answer itself - does Phonon list only these devices that are softvol plugins? I tried setting a name and a hint to "type plug", but it still wasn't listed in Phonon, although it showed up in "aplay -L". I don't want to use softvol, because it seems that it causes ALSA to take a lot more CPU (ie. I hear some weird lags and glitches in Amarok (using ALSA directly)) - could softvol really cause that?

My .asoundrc looks like this (I have E-MU 0404 USB and I guess the recording part doesn't still work):

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
pcm.!default {                                        
  type plug                                           
  slave.pcm "softvol"                                 
}                                                     
pcm.softvol {                                         
  type            softvol                             
  slave {                                             
    pcm         "plugAsym"                            
  }                                                   
  control {                                           
    name        "SoftMaster"                          
    card        USB                                   
  }                                                   
  hint {                                              
    show on                                           
    description "E-MU 0404 USB SoftMaster"            
  }                                                   
}
pcm.plugAsym {
  type plug
  slave.pcm "asymUsb"
}
pcm.asymUsb {
  type asym
  playback.pcm "dmixUsb"
  capture.pcm "dsnoop"
}
pcm.dmixUsb {
  type dmix
  ipc_key 1024
  slave {
    pcm "pcmUsb"
    period_size 512
  }
}
pcm.pcmUsb {
  type hw
  card USB
}
pcm.rec_left {
  type dsnoop
  ipc_key 2048
  slave {
    pcm "pcmUsb"
    channels 2
  }
  bindings.0  0
}
pcm.rec_right {
  type dsnoop
  ipc_key 2048
  slave {
    pcm "pcmUsb"
    channels 2
  }
  bindings.0  1
}

Similar threads