Where can I find a high quality music library for python that plays OGG, ACC and/or MP3 which isn't pygame? [closed]
We don’t allow questions seekin开发者_如何学Gog recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this questionI've tried the sound module in Pygame, and I haven't been satisfied with the results. I need to play music and sounds in my game. What can I use that works with OSX, Linux and Windows, and plays sound well? Unfortunately, pyMedia doesn't compile on OSX.
pyglet provides an object-oriented programming interface for developing games and other visually-rich applications for Windows, Mac OS X and Linux. Some of the features of pyglet are:
No external dependencies or installation requirements. For most application and game requirements, pyglet needs nothing else besides Python, simplifying distribution and installation.
Take advantage of multiple windows and multi-monitor desktops. pyglet allows you to use as many windows as you need, and is fully aware of multi-monitor setups for use with fullscreen games.
Load images, sound, music and video in almost any format. pyglet can optionally use AVbin to play back audio formats such as MP3, OGG/Vorbis and WMA, and video formats such as DivX, MPEG-2, H.264, WMV and Xvid.
I have recently developed a high-level Python module which uses FFmpeg for decoding (i.e. it should support almost all existing file formats) and PortAudio for output: ffmpeg
A simple demo player is here.
This was developed as part of a music player project. It has many high quality functionality such as audio volume normalization using an own ReplayGain algorithm, etc.
精彩评论