Here are some key points about what we learned in this last chapter:
sound = pygame.mixer.Sound("sound.wav"), and you can play the sound by doing sound.play().pygame.mixer.music.load("jazz.wav"), and you can play the music by doing pygame.mixer.music.play(-1). The number in the parenthesis determines how long the music is played.<aside> ⚖️ Copyright © 2021 Code 4 Tomorrow. All rights reserved. The code in this course is licensed under the MIT License.
If you would like to use content from any of our courses, you must obtain our explicit written permission and provide credit. Please contact [email protected] for inquiries.
</aside>