pyalsaaudio icon indicating copy to clipboard operation
pyalsaaudio copied to clipboard

Add the ability to retrieve control, similar to: `amixer -D hw:1 scontrols`

Open charlesomer opened this issue 3 years ago • 2 comments

Hi,

I'm not sure if this would be possible or already exists (I don't think it does) but it would be great if it was possible to get the control for a device similar to amixer -D hw:1 scontrols. At the moment I am extracting the string which isn't elegant but does work for now.

Thank you Charles

charlesomer avatar Apr 19 '21 17:04 charlesomer

You can have a look whether the function called from amixer can be made available in pyalsaaudio. I have no experience with the mixer side, but extending the sound acquisition side was doable.

There are a few pitfalls related to memory management when extending pyalsaaudio functionality. But all in all it is not extremely hard, just takes some time.

RonaldAJ avatar Apr 30 '21 21:04 RonaldAJ

isn't the request just asking for an enumeration of controls? that's what alsaaudio.mixers() is supposed to do.

ossilator avatar Feb 01 '24 22:02 ossilator