old_contents: import glob
  import os
  
  import pyglet
  
  import settings
  
  
  pyglet.resource.path = settings.RESOURCE_PATH
  pyglet.resource.reindex()
  
  sound = pyglet.resource.media('pink-turrican_gbc6.mp3')
  sound.play()
  
  while 1:
      import time
      time.sleep(10)
  
  
new_contents: import sys
  import glob
  import os
  
  import pyglet
  
  import settings
  
  if sys.platform == 'darwin':
      from AppKit import NSSound
      class Sound(object):
          def __init__(self, path):
              self.sound = NSSound.alloc()
              self.sound.initWithContentsOfFile_byReference_(path, True)
          def play(self):
              self.sound.play()
          def stop(self):
              self.sound.stop()
          @property
          def playing(self):
              return self.sound.isPlaying()
  elif sys.platform == 'win32':
      from win32com.client import Dispatch
      class Sound(object):
          def __init__(self, path):
              self.mp = Dispatch('WMPlayer.OCX')
              self.sound = self.mp.newMedia(path)
              self.mp.currentPlaylist.appendItem(self.sound)
          def play(self):
              self.mp.controls.play()
          def stop(self):
              self.mp.controls.stop()
          @property
          def playing(self):
              return self.mp.playState == 9
  
  pyglet.resource.path = settings.RESOURCE_PATH
  pyglet.resource.reindex()
  
  if sys.platform in ('darwin', 'win32'):
      sound = Sound('data/music/pink-turrican_gbc6.mp3')
      sound.play()
  else:
      sound = pyglet.resource.media('pink-turrican_gbc6.mp3')
      sound.play()
  
  while 1:
      import time
      time.sleep(10)
  
  
subject: test for windows.