Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
charlesomer opened this issue Apr 19, 2021 · 2 comments

Comments

@charlesomer
Copy link

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

@RonaldAJ
Copy link
Collaborator

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.

@ossilator
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants