renpy / pygame_sdl2

Reimplementation of portions of the pygame API using SDL2.
GNU Lesser General Public License v2.1
327 stars 64 forks source link

Fix errors in Channel.play(sound). #38

Closed nneonneo closed 8 years ago

nneonneo commented 8 years ago

Channel.play(sound) was throwing the following error:

  File "test_gui.py", line 80, in do_record_wav
    self.channel.play(sound, 0)
  File "pygame_sdl2/mixer.pyx", line 246, in pygame_sdl2.mixer.Channel.play (gen/pygame_sdl2.mixer.c:5041)
  File "pygame_sdl2/mixer.pyx", line 247, in pygame_sdl2.mixer.Channel.play (gen/pygame_sdl2.mixer.c:4993)
AttributeError: 'Channel' object has no attribute 'current_sounds'

This patch fixes that bug (and the related renaming of the cid attribute). After fixing the bug, I can verify that Channel.play(sound) correctly plays sound.

renpytom commented 8 years ago

Merged, thank you.