Source

pygame / pygame / mixer.py

Diff from to

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):
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.