Amaury Forgeot d'Arc  committed c2b0578

Fix rsdl tests

  • Participants
  • Parent commits 42dd6ee
  • Branches default

Comments (0)

Files changed (1)

File pypy/rlib/rsdl/

 def LoadWAV(filename_ccharp):
-    return LoadWAV_RW(RSDL.RWFromFile(filename_ccharp, rffi.str2charp('rb')), 1)
+    with rffi.scoped_str2charp('rb') as mode:
+        return LoadWAV_RW(RSDL.RWFromFile(filename_ccharp, mode), 1)
 PlayChannelTimed    = external('Mix_PlayChannelTimed',
 """Returns zero if the channel is not playing. 
 Otherwise if you passed in -1, the number of channels playing is returned"""
-ChannelPlaying  = external('Mix_Playing', [ rffi.INT])
+ChannelPlaying  = external('Mix_Playing', [rffi.INT], rffi.INT)