Re: [python-win32] Play MP3s from Windows, Just Works

2008-08-18 Thread Tim Roberts
Vernon Cole wrote: As always, remember that mp3 is proprietary, and the owner has shown willingness to be nasty about licensing it. Therefore, anything that is "easy to install" is possibly illegal and/or will open you to a lawsuit. If you are doing new work, better to use ogg. That statement

Re: [python-win32] Play MP3s from Windows, Just Works

2008-08-13 Thread Graeme Glass
On Wed, Aug 13, 2008 at 4:56 PM, Vernon Cole <[EMAIL PROTECTED]> wrote: > Where can one find documentation of MCI? > > On Tue, Aug 12, 2008 at 4:30 PM, Michel Claveau <[EMAIL PROTECTED]> wrote: > >> Hi! >> >> This is perfect. Works like a charm ... Thank you very much! >>> >> >> Thanks for retur

Re: [python-win32] Play MP3s from Windows, Just Works

2008-08-13 Thread Vernon Cole
Where can one find documentation of MCI? On Tue, Aug 12, 2008 at 4:30 PM, Michel Claveau <[EMAIL PROTECTED]> wrote: > Hi! > > This is perfect. Works like a charm ... Thank you very much! >> > > Thanks for return. > > For info, MCI can, also, record from microphone, save file, give infos on > so

Re: [python-win32] Play MP3s from Windows, Just Works

2008-08-12 Thread Michel Claveau
Hi! This is perfect. Works like a charm ... Thank you very much! Thanks for return. For info, MCI can, also, record from microphone, save file, give infos on sound files, play mp3, wma or mid, etc. It's an old techno of Windows. But... it's only on Windows. @-salutations -- Michel Claveau

Re: [python-win32] Play MP3s from Windows, Just Works

2008-08-12 Thread Michael Gundlach
Michel, This is perfect. Works like a charm, and I assume it's not due to my installing anything already besides Python itself. Thank you very much! I'll go put this into a simple "mp3play" module, and put a recipe in the Cookbook, to up the chance that people find this. Perhaps the module wil

Re: [python-win32] Play MP3s from Windows, Just Works

2008-08-12 Thread Michel Claveau
Hi! You can use MCI (include inWindows). Example: # -*- coding: utf-8 -*- import time from ctypes import windll, c_buffer class mci: def __init__(self): self.w32mci = windll.winmm.mciSendStringA self.w32mcierror = windll.winmm.mciGetErrorStringA def send(self,commande):

Re: [python-win32] Play MP3s from Windows, Just Works

2008-08-12 Thread Michael Gundlach
Re: PyGame: I forgot that one in my list. Someone else tried it and said sound quality for MP3 playback was terrible (didn't verify myself though). Re: pyglet: thanks for the suggestion. Re: licensing: good point, and so I think that the best solution is... os.startfile('x.mp3'). Thank you, Br

Re: [python-win32] Play MP3s from Windows, Just Works

2008-08-12 Thread Brian Parma
If you don't need to control the playback with your program but just launch it (in WMP), try os.startfile instead of os.system. On Tue, Aug 12, 2008 at 7:45 AM, Vernon Cole <[EMAIL PROTECTED]> wrote: > As always, remember that mp3 is proprietary, and the owner has shown > willingness to be nasty

Re: [python-win32] Play MP3s from Windows, Just Works

2008-08-12 Thread Vernon Cole
As always, remember that mp3 is proprietary, and the owner has shown willingness to be nasty about licensing it. Therefore, anything that is "easy to install" is possibly illegal and/or will open you to a lawsuit. If you are doing new work, better to use ogg. On Tue, Aug 12, 2008 at 5:53 AM, Sidne

Re: [python-win32] Play MP3s from Windows, Just Works

2008-08-12 Thread Sidnei da Silva
On Tue, Aug 12, 2008 at 4:26 AM, Gerdus van Zyl <[EMAIL PROTECTED]> wrote: > Try pyglet [pyglet.org]. It wraps avbin for mp3,ogg reading and plays > using directsound, alsa, etc. Not sure if it could be made > easy_installable. Maybe PyGame? Same issue re: being easy_install-able though. -- Sidn

Re: [python-win32] Play MP3s from Windows, Just Works

2008-08-12 Thread Gerdus van Zyl
Try pyglet [pyglet.org]. It wraps avbin for mp3,ogg reading and plays using directsound, alsa, etc. Not sure if it could be made easy_installable. ~Gerdus On Tue, Aug 12, 2008 at 8:14 AM, Michael Gundlach <[EMAIL PROTECTED]> wrote: > Hi, > > Is there a way to play an MP3 from Python 2.5 in Window