Python Forum
[PyGame] How to loop music with pygame
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyGame] How to loop music with pygame
#1
Hi,

I have this line of code below:

pygame.mixer.Channel(0).play(pygame.mixer.Sound("Z:\Finley\School\Sixth Form\CS\Code\OOP\dice_gamble_home_music.mp3"))
How would I get this music to loop forever?
"Only Boring People Get Bored"
Reply


Messages In This Thread
How to loop music with pygame - by finndude - Oct-23-2021, 10:20 AM
RE: How to loop music with pygame - by menator01 - Oct-23-2021, 04:29 PM
RE: How to loop music with pygame - by metulburr - Nov-09-2021, 10:54 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Problem with music - Pygame.error GaseBall 1 3,332 Nov-28-2019, 07:46 PM
Last Post: SheeppOSU
  How can I make music with python/pygame? xBlackHeartx 12 7,591 Oct-15-2019, 08:00 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020