[Solved] Alsa softvol, multiple sounds at once

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
loeblich
Posts: 2
Joined: 13. Jan 2015, 12:11

[Solved] Alsa softvol, multiple sounds at once

Post 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
Last edited by loeblich on 15. Jan 2015, 15:37, edited 1 time in total.
User avatar
gapan
Salix Wizard
Posts: 6361
Joined: 6. Jun 2009, 17:40

Re: Alsa softvol, multiple sounds at once

Post by gapan »

You need to enable dmix. That's what it does.
Image
Image
loeblich
Posts: 2
Joined: 13. Jan 2015, 12:11

Re: Alsa softvol, multiple sounds at once

Post 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
}
User avatar
Atip
Posts: 539
Joined: 5. Jun 2011, 04:27

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

Post 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
}
Post Reply