pygame is sharing code with you

Bitbucket is a code hosting site. Unlimited public and private repositories. Free for small teams.

Don't show this again

pygame / pygame http://pygame.org/

Clone this repository (size: 15.4 MB): HTTPS / SSH
hg clone https://bitbucket.org/pygame/pygame
hg clone ssh://hg@bitbucket.org/pygame/pygame

Issues

#44 pygame.mixer.music.play only plays once

Reported by illume

Joshua, 2010-05-04 20:59:38 -0700

Created attachment 34
Sample script of one example where it does not work.

Using the command pygame.mixer.music.play() only plays the background once no matter what parameter is given.  -1 will cause it to only play once.  > 1 will still only cause it to play once.  I have only tried this with a .mid file.  pygame.mixer.Sound works as it should.

Attachments: dodger.py

Status: wontfix Responsible: illume Type: bug Priority: trivial
Milestone: none Component: none Version: none

Attachments

No attachments added for this issue yet.

Comments and changes

  1. #1 illume

    written

    • Changed status from new to wontfix.

    Reported to SDL bug tracker: http://bugzilla.libsdl.org/show_bug.cgi?id=934

    The work around is to loop manually in your main loop by checking if get_busy() is false, and if so play the music again.

  2. #2 Anonymous

    written

    FYI, this is fixed for the next SDL_mixer release.

Add comment / attachment

Verification: Please write the text from the image in the box (letters only)

captcha

Is that you, Humanoid? Is this me?