In a message of 2015年10月22日 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)