You are not logged in.

#1 2014-08-30 18:37:04

diffycat
Member
Registered: 2011-06-18
Posts: 26

[SOLVED] Deadbeef: Use alsa:PCM instead of software mixer

Hello,

Does anyone know how to get Deadbeef to use PCM alsa mixer instead of it's internal audio software mixer?

Last edited by diffycat (2014-09-01 16:43:18)

Offline

#2 2014-08-30 19:17:36

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: [SOLVED] Deadbeef: Use alsa:PCM instead of software mixer

 You mean dmix?

Offline

#3 2014-08-30 19:31:14

diffycat
Member
Registered: 2011-06-18
Posts: 26

Re: [SOLVED] Deadbeef: Use alsa:PCM instead of software mixer

emeres wrote:

 You mean dmix?

No. I want ddb to use PCM volume scale. So when I change volume in ddb it will also change PCM volume.

Offline

#4 2014-08-30 20:53:58

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: [SOLVED] Deadbeef: Use alsa:PCM instead of software mixer

 Have you ever seen such a setup? I see nothing in deadbeefs configuration [file] or './configure --help' in its sources. Only basic alsa support. Deadbeef can 'take control' over a device, when the output is a softvol referencing to PCM as control name on the appropriate sound card and possibly limit the volume slider, but that is how far I got it.
 Creating a script that would watch deadbeef volume and change PCM or whatever you specify using amixer. The problem is getting deadbeefs volume. Now-playing switch does not seems to provide that.

Offline

#5 2014-08-31 11:35:31

diffycat
Member
Registered: 2011-06-18
Posts: 26

Re: [SOLVED] Deadbeef: Use alsa:PCM instead of software mixer

emeres wrote:

 Have you ever seen such a setup?

No. That's why I'm asking.

emeres wrote:

Creating a script that would watch deadbeef volume and change PCM or whatever you specify using amixer. The problem is getting deadbeefs volume. Now-playing switch does not seems to provide that.

I can get volume level with mpris-plugin. The only problem is that it crashes with current ddb version.

Offline

#6 2014-08-31 11:52:54

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: [SOLVED] Deadbeef: Use alsa:PCM instead of software mixer

Well when it does, something similar to this should satisfy your needs:

while :; do
 amixer -q sset PCM $(($(mpris-remote volume)*255/100));
 sleep .5; 
done

Edit: Used mpris-remote volume instead of playerctl.

Edit2: Added -q to amixer.

Last edited by emeres (2014-08-31 23:13:30)

Offline

#7 2014-08-31 19:08:37

diffycat
Member
Registered: 2011-06-18
Posts: 26

Re: [SOLVED] Deadbeef: Use alsa:PCM instead of software mixer

Ok, I've managed to start mpris-plugin (build it from previous repository). For some unknown reason playerctl always shows volume level as 0. But mpris-remote works fine: https://aur.archlinux.org/packages/mpris-remote-git/

Offline

#8 2014-08-31 23:11:23

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: [SOLVED] Deadbeef: Use alsa:PCM instead of software mixer

 The above works for me, PCM is being 'controlled', ergo readjusted to the level of deadbeef. You may want to recalibrate it to your hardware/needs.

 I would suggest however, that you ask the developer[⁣s] to implement something like this or try doing it yourself and then propose it then.

Should you consider this issue solved, then please mark the thread as such.

Offline

Board footer

Powered by FluxBB