Page 1 of 1

[Solved] Alsa softvol, multiple sounds at once

Posted: 13. Jan 2015, 12:23
by loeblich
Hello, I just started with salix some time ago and I have some issues that I couldn't fix yet.

Alsa is not that loud with the laptop speaker so I'm trying to add a preamp with the softvol plugin.
This works but makes it impossible to play multiple sounds at once (which works with an empty adound.conf).
Here is my asound.conf

Code: Select all

pcm.!default {
        type plug
        slave.pcm "softvol"
}
pcm.softvol {
 	type softvol
         slave {
#                pcm "dmix" 
		 pcm "hw:1,0"
           }
        control {
            name "Pre-Amp"
            card 1
          }
      min_dB -5.0
      max_dB 10.0
      resolution 10
} 
 
I tried changing some things but I haven't been able to get it to work
Best regards

Re: Alsa softvol, multiple sounds at once

Posted: 13. Jan 2015, 20:06
by gapan
You need to enable dmix. That's what it does.

Re: Alsa softvol, multiple sounds at once

Posted: 15. Jan 2015, 15:36
by loeblich
Tried that, it results in no sound at all (if I change it in the above config).

Found a different way to do it somewhere else. Here is the config that works for me:

Code: Select all

pcm.!default {
    type plug
    slave.pcm "softvol"
}
pcm.dmixer {
    type dmix
    slave {
        pcm "hw:1,0"
    }
}
pcm.softvol {
  type softvol
  slave { pcm "dmixer" }
  control {
    name "preamp"
    card 1
  }
  min_dB -5.0
  max_dB 10.0
  resolution 10
} 

ctl.!default {
  type hw
  card 1
}
ctl.softvol {
  type hw
  card 1
}
ctl.dmixer {
  type hw
  card 1
}

Re: [Solved] Alsa softvol, multiple sounds at once

Posted: 16. Jan 2015, 00:56
by Atip
This is my asound.conf working well.

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

pcm.softvol {
type softvol
slave {
pcm "dmix"
}
control {
name "Pre-Amp"
card 0
}
min_dB -5.0
max_dB 20.0
resolution 6
}