Source

pygame / pygame / mixer.py

Diff from to

File pygame/mixer.py

 
 from SDL import *
 from SDL.mixer import *
+from SDL.rwops import *
 
 import pygame.base
 
     while i < buffer:
         i <<= 1
     buffer = i
-
+    
+    global _endsound_callback
     if not SDL_WasInit(SDL_INIT_AUDIO):
         pygame.base.register_quit(_autoquit)
 
         _mixer_init_check()
 
         if hasattr(file, 'read'):
-            rw = SDL_RWopsFromObject(file)
+            rw = SDL_RWFromObject(file)
             # differ from Pygame, no freesrc here.
             self._chunk = Mix_LoadWAV_RW(rw, 0)
         else:
 
         channel = Channel(channelnum)
         channel._queue = None
-        channel._sound = None
+        channel._sound = self
         return channel
         
     def stop(self):