PySlither / Slither

A Python module for bridging Scratch and Python
http://pyslither.github.io/
MIT License
14 stars 6 forks source link

Sound #49

Closed ghost closed 8 years ago

ghost commented 8 years ago

Sound seems to work fie but the was a comment saying it was't working. hmm?

BookOwl commented 8 years ago

When I tried it I just got a bunch of errors

Tymewalk commented 8 years ago

I tried it and didn't hear a boom, just "click-click-click-click..."

ghost commented 8 years ago

Oh, I'm getting an indent error.

ghost commented 8 years ago

It won't go away!!!!!

ghost commented 8 years ago

IndentationError: unindent does not match any outer indentation level

ghost commented 8 years ago

It goes click click click if it cannot find a sound file.

BookOwl commented 8 years ago

I always got a pygame exception saying that it could not load the file. I think that we should disable the code in the master branch and make a new branch that we can use to try and get sound to work

ghost commented 8 years ago

Wait

ghost commented 8 years ago

Ok, I fixed the indent error.

ghost commented 8 years ago

Should work now.

ghost commented 8 years ago

Yeah I think your right BookOwl, now I'm getting a memory error.

ghost commented 8 years ago

Yay, memory error comes up cause my computer doesn't have much ram.

emmatyping commented 8 years ago

A memory error? With audio? Hm. That seems strange. To be clear are you getting an out of memory error? Or is it an access violation? or something else?

Tymewalk commented 8 years ago

I agree, that is strange. Can you post the exact error?

BookOwl commented 8 years ago

Since we're having so much trouble getting Pygame's audio to work, maybe we should try using simpleaudio

ghost commented 8 years ago

YESSSSS! FInally fixed it! I forgot to initilise the pygame mixer, thats why there was a memory error, http://stackoverflow.com/questions/8690301/pygame-memoryerror

ghost commented 8 years ago

Going to release a patch...