select.poll and ppoll

Laura Creighton lac at openend.se
Thu Oct 22 05:07:36 EDT 2015


In a message of Thu, 22 Oct 2015 16:38:52 +1100, "Steven D'Aprano" writes:
>Using Python 2.6, don't hate me.

>Technically, *I* don't want this, it's one of my work-colleagues. He says:
>
>"My high-level goal is to run a callback function whenever the alsa mixer 
>level changes.  The C alsa API provides snd_mixer_elem_set_callback, but the 
>Python API (import alsaaudio) seems to need me to get poll(2) descriptors"

>-- 
>Steve
>
>-- 
>https://mail.python.org/mailman/listinfo/python-list

Do you need alsa-mixer or would pulse-audio work for you?
Would this: https://github.com/mk-fg/pulseaudio-mixer-cli
do the job?

Laura (alsa-mixer hater)




More information about the Python-list mailing list