Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #18249
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <jerome@jolimont.fr> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.007 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'pygame': 0.05; 'closest': 0.07; 'something,': 0.07; 'url:mit': 0.07; 'python': 0.08; 'subject:library': 0.09; 'library': 0.13; 'bindings': 0.16; 'chasing': 0.16; 'debian.': 0.16; 'gonna': 0.16; 'header:X-Face:1': 0.16; 'ported': 0.16; 'received:lan': 0.16; 'recently.': 0.16; 'skip:/ 50': 0.16; 'subject:Which': 0.16; 'subject:audio': 0.16; 'url:pygame': 0.16; 'cc:addr:python-list': 0.16; 'question.': 0.16; 'examples': 0.16; 'linux': 0.17; 'cc:no real name:2**0': 0.20; "haven't": 0.20; "aren't": 0.21; 'linux,': 0.21; 'primarily': 0.21; 'dec': 0.22; "doesn't": 0.22; 'assume': 0.22; 'header:In-Reply-To:1': 0.22; 'appear': 0.23; 'cc:2**0': 0.24; '(my': 0.24; 'libraries': 0.24; 'subject: ?': 0.24; 'posted': 0.25; 'guess': 0.26; 'windows': 0.26; "i'm": 0.26; 'url:edu': 0.27; '(and': 0.28; 'bit': 0.28; 'source,': 0.29; 'yield': 0.29; 'cc:addr:python.org': 0.29; 'seem': 0.30; 'exist.': 0.30; 'url:library': 0.31; 'thanks': 0.31; 'anyone': 0.31; "i've": 0.31; 'source': 0.31; "didn't": 0.31; "i'll": 0.31; "isn't": 0.33; 'there': 0.33; 'fri,': 0.34; 'done': 0.34; 'it.': 0.34; 'richard': 0.34; 'complaints': 0.34; 'something': 0.35; 'sets': 0.35; 'url:python': 0.36; 'similar': 0.36; 'core': 0.36; 'problem.': 0.36; 'uses': 0.36; 'instead.': 0.37; 'two': 0.37; 'but': 0.37; 'could': 0.37; 'open': 0.38; 'enough': 0.38; 'replace': 0.38; 'some': 0.38; 'useful': 0.38; 'feed': 0.39; 'url:docs': 0.39; 'url:org': 0.39; 'being': 0.39; 'everyone': 0.39; "it's": 0.40; 'might': 0.40; 'platforms': 0.40; '2011': 0.61; 'your': 0.61; 'world': 0.62; 'integrated': 0.63; 'received:89': 0.64; 'survey': 0.66; 'high': 0.67; 'ports': 0.67; 'low': 0.74; 'forums': 0.77; '"full': 0.84; '-0800': 0.84; 'competitors.': 0.84; 'mac.': 0.84; 'midi': 0.84; 'oss': 0.84; 'packaged': 0.84; 'to:none': 0.93 |
| X-Spam-Checker-Version | SpamAssassin 3.3.1 (2010-03-16) on jeftof |
| X-Spam-Level | |
| X-Spam-Status | No, score=0.2 required=7.0 tests=ALL_TRUSTED,MISSING_HEADERS autolearn=no version=3.3.1 |
| Date | Sat, 31 Dec 2011 12:02:31 +0100 |
| From | Jérôme <jerome@jolimont.fr> |
| Cc | python-list@python.org |
| Subject | Re: Which library for audio playback ? |
| In-Reply-To | <3ptLq.44453$8O1.22863@newsfe07.iad> |
| References | <mailman.4218.1325167118.27778.python-list@python.org> <3ptLq.44453$8O1.22863@newsfe07.iad> |
| X-Mailer | Claws Mail 3.7.10 (GTK+ 2.24.8; x86_64-pc-linux-gnu) |
| X-Face | "kBB1-!wF@,"j_&tJ&7; T,t)PeQkZg5?.:{p,s>/,+?b6pN5!yxZy^nRXA=*?W+|J9OG!W[rdx^VA^Sx`R"g,; +MzhAq"tZFg27W4qX+ZXvLX=%piZ6c.7@oSDHyQ0Mff#HGx<{ |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | quoted-printable |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://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 | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.4261.1325329206.27778.python-list@python.org> (permalink) |
| Lines | 70 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1325329206 news.xs4all.nl 6949 [2001:888:2000:d::a6]:48432 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:18249 |
Show key headers only | View raw
Fri, 30 Dec 2011 17:17:51 -0800 K Richard Pixley a écrit: > I made a similar survey of available libraries recently. I'm interested > in MIDI also, though, primarily on mac. > > There doesn't seem to be any definitive audio library for linux, > although several, (jack, oss, alsa), exist. (My impression is similar > to yours, OSS is obsolete. Jack may be the better library technically, > but is not as widely ported or available as ALSA.) > > There is a definitive library for both audio and MIDI on mac - core > audio. There really aren't any competitors. > > There is also a definitive library for windows, although I don't use > windows. It's the open source one with low latency that everyone in the > professional world uses to replace windows because, (surprise!), windows > isn't capable of coping. > > I have found python libraries for each of these, although some are very > low level libraries, basically just wrapping something even lower. If > anyone has done an integrated "full solution" for linux or mac, I didn't > find it. The closest I found was PortMIDI and PortAudio which appear to > have ports for all three platforms as well as one or two sets of python > bindings and seem to be high enough level to be both useful and > productive. The hard part there is that PortMIDI and PortAudio come in > source, which requires a bit of hunting to track down prerequisites, etc. > > Please keep us posted as I'm chasing a similar problem. Hi. Looking at it again, I've narrowed down to the following few : ossaudiodev http://docs.python.org/library/ossaudiodev.html Linux only but included in python pygame http://www.pygame.org/docs/ref/mixer.html#pygame.mixer.Sound Most occurring answer on forums and mailing-lists on the net for this question. Might be a little overkill... PortAudio http://people.csail.mit.edu/hubert/pyaudio/ http://www.portaudio.com/ Cross-platform, packaged for debian. Could fit my needs as well. Generally, the examples I find are about opening and playing a wavefile. I guess I'm gonna have to work a little to feed them a homegrown sinewave of arbitrary frequency. Regarding PortAudio, python /usr/share/doc/python-pyaudio/examples/system_info.py (and other examples) yield complaints about jack not being running. I assume they could be tweaked to use ALSA instead. I haven't had time to dig any further. If I come up with something, I'll keep you posted. Thanks for your answer. -- Jérôme
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Which library for audio playback ? Jérôme <jerome@jolimont.fr> - 2011-12-29 14:55 +0100
Re: Which library for audio playback ? K Richard Pixley <rich@noir.com> - 2011-12-30 17:17 -0800
Re: Which library for audio playback ? Jérôme <jerome@jolimont.fr> - 2011-12-31 12:02 +0100
csiph-web