All of lore.kernel.org
 help / color / mirror / Atom feed
* pyalsa.alsamixer.Element.get_volume_dB returns error status instead of actual value
       [not found] <182cea4fbb3cbf00-webhooks-bot@alsa-project.org>
@ 2025-03-15  7:46 ` GitHub issues - opened
  0 siblings, 0 replies; only message in thread
From: GitHub issues - opened @ 2025-03-15  7:46 UTC (permalink / raw)
  To: alsa-devel

alsa-project/alsa-python issue #16 was opened from tespent:

I am writing a status collector for my PC, and I noticed that `pyalsa.alsamixer.Element.get_volume_dB` always returns 0 in my test, which lead to invalid result for the collected status.

After digging into code I notice that the following code returns `res` instead of `val` as the result:
https://github.com/alsa-project/alsa-python/blob/f8f9260282eb9c97f53e4689e04182dc87a4810e/pyalsa/alsamixer.c#L983

I am able to workaround this issue by using `elem.ask_volume_dB(elem.get_volume())` but this looks silly.

Btw, I'm willing to contribute and subscribed to alsa-devel mailing list but I didn't figure out exactly how. Can someone tell me?

Issue URL     : https://github.com/alsa-project/alsa-python/issues/16
Repository URL: https://github.com/alsa-project/alsa-python

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-03-15  7:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <182cea4fbb3cbf00-webhooks-bot@alsa-project.org>
2025-03-15  7:46 ` pyalsa.alsamixer.Element.get_volume_dB returns error status instead of actual value GitHub issues - opened

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.