play audio on OSX?
I'm attempting to play an mp3 file on OSX, but am running into some
difficulty. When using py-mad and py-ao, I only get static with the
following code (which is derived off another mailing that I found from
this list's archives):
py-mad (mp3 ability)
py-ao (system audio ability)
import mad, ao, sys
mf = mad.MadFile(sys.argv)
dev = ao.AudioDevice('macosx')#osx device, linux: use "oss" or "alsa"
buf = mf.read()
if buf is None:
Does anyone know why this produces static, or whether there's a better
method of producing audio output that's also cross-platform (OSX,
linux)? I've looked at pymedia, but they do not support OSX at the moment.
|All times are GMT. The time now is 12:33 AM.|
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.