title: Best python solution to play ALL kinds of audio on Windows (and Linux)?
body: <p>I'm trying to write some scripts to play some of my music collection with python. Finding python modules that will play ogg and mp3 is not a problem. However, I'm having repeated failures with aac-encoded m4a files from iTunes (not DRM). pygame's audio machinery doesn't support them, so I tried pymedia:</p>
  
  <pre><code>a = pymedia.player.Player()
  a.start()
  a.startPlayback("myM4a.m4a", format='aac')
  </code></pre>
  
  <p>I've tried several versions of the last line of code, including omitting the format argument, changing the files to mp4, etc. mp3's work fine, however.</p>
  
  <p>pymedia even claims to support aac encoded files, but the project appears to have been abandoned anyway. </p>
  
  <p>Is there a good, up to date, solution for playing ALL types of audio in python? What is used by existing python media centers/players?</p>
  
  <p>I should add that I intend to use this primarily on windows, so windows support for the library is a must, but cross-platform would obviously be preferable.</p>