Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #97886

Re: select.poll and ppoll

Path csiph.com!au2pb.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!nzpost1.xs4all.net!not-for-mail
Return-Path <lac@openend.se>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'api': 0.09; 'cc:addr :python-list': 0.09; 'callback': 0.09; 'high-level': 0.09; 'received:openend.se': 0.09; 'received:theraft.openend.se': 0.09; 'url:github': 0.09; 'python': 0.10; 'thu,': 0.15; '*i*': 0.16; 'cc:addr:lac': 0.16; 'cc:addr:openend.se': 0.16; 'from:addr:lac': 0.16; 'from:addr:openend.se': 0.16; 'from:name:laura creighton': 0.16; 'message-id:@fido.openend.se': 0.16; 'received:fido': 0.16; 'received:fido.openend.se': 0.16; 'to:addr:pearwood.info': 0.16; 'to:addr:steve+comp.lang.python': 0.16; "to:name:steven d'aprano": 0.16; 'laura': 0.18; '2015': 0.20; 'cc:addr:python.org': 0.20; 'cc:2**1': 0.22; 'seems': 0.23; 'this:': 0.23; 'function': 0.28; 'received:se': 0.29; 'cc:no real name:2**1': 0.29; 'you?': 0.30; 'url:mailman': 0.30; 'run': 0.33; 'url:python': 0.33; 'url:listinfo': 0.34; 'skip:> 10': 0.35; 'but': 0.36; 'url:org': 0.36; 'subject:: ': 0.37; 'charset:us-ascii': 0.37; 'url:mail': 0.40; 'header:Message-Id:1': 0.61; 'goal': 0.64; 'hate': 0.66; '(import': 0.84; 'header:In-reply-to:1': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=openend.se; s=default; t=1445504863; bh=b1RNgwujNlu7aCdOUi/D8SmNdbRn2J6uiv5dedg6kzs=; h=To:cc:From:Subject:In-reply-to:References:Date:From; b=ta8hOb0t89EJOiWNTiAgT4LGO597ReevbRg4ahLj1umQHmvxA4ftTyp5UIP3pG8y6 JT3IMo93aXvSkxO6uYSGDYlLfDXQ9Tv4eXtmG5GXXViv0k211APwiYYQpAD6288XUS qhy5+mMEHic6H9ZMJyptykhZEAGxU/rQ9cmCBWIs=
To "Steven D'Aprano" <steve+comp.lang.python@pearwood.info>
cc python-list@python.org, lac@openend.se
From Laura Creighton <lac@openend.se>
Subject Re: select.poll and ppoll
In-reply-to <56287672$0$11117$c3e8da3@news.astraweb.com>
References <56287672$0$11117$c3e8da3@news.astraweb.com>
Comments In-reply-to "Steven D'Aprano" <steve+comp.lang.python@pearwood.info> message dated "Thu, 22 Oct 2015 16:38:52 +1100."
MIME-Version 1.0
Content-Type text/plain; charset="us-ascii"
Content-ID <18128.1445504855.1@fido>
Date Thu, 22 Oct 2015 11:07:36 +0200
X-Greylist Sender IP whitelisted, not delayed by milter-greylist-4.3.9 (theraft.openend.se [82.96.5.2]); Thu, 22 Oct 2015 11:07:43 +0200 (CEST)
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.87.1445504881.878.python-list@python.org> (permalink)
Lines 21
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1445504881 news.xs4all.nl 23800 [2001:888:2000:d::a6]:49779
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:97886

Show key headers only | View raw


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)

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

select.poll and ppoll Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-10-22 16:38 +1100
  Re: select.poll and ppoll Paul Rubin <no.email@nospam.invalid> - 2015-10-22 00:30 -0700
  Re: select.poll and ppoll Laura Creighton <lac@openend.se> - 2015-10-22 11:07 +0200
  Re: select.poll and ppoll Marko Rauhamaa <marko@pacujo.net> - 2015-10-22 14:18 +0300
    Re: select.poll and ppoll Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-10-25 22:30 +1100
      Re: select.poll and ppoll Marko Rauhamaa <marko@pacujo.net> - 2015-10-25 21:21 +0200
        Re: select.poll and ppoll Marko Rauhamaa <marko@pacujo.net> - 2015-10-25 21:23 +0200

csiph-web