How to Play Audio Files (Sound Effects and Music) in Python Using Pygame (Mp3 and Others)

  Рет қаралды 16,942

Fabio Musanni - Programming Channel

Fabio Musanni - Programming Channel

Күн бұрын

Пікірлер: 19
@FabioMusanni
@FabioMusanni Жыл бұрын
💻 *Source Code + mp3 Files:* www.buymeacoffee.com/fabiomusanni/e/183129 ☕ *Buy me a coffee:* www.buymeacoffee.com/fabiomusanni 😍 *One-off donation:* www.paypal.me/FabioMusanni/ ⬇️ *LEARN ON THE BEST LEARNING PLATFORMS* 😉💪 ⬇️ *SKILLSHARE* _(Python, Web Dev, UI/UX Design, Music, Art, Animation and a lot more)_ 🔗 skillshare.eqcm.net/5gxzD2 (Affiliate) *DATACAMP* _(Python, ChatGPT, SQL, Power BI, and a lot more)_ 🔗 datacamp.pxf.io/vN1bDj (Affiliate) *COURSERA PYTHON* _(For beginners, Data Science, Data Analysis, AI, Cybersecurity and a lot more):_ 🔗 imp.i384100.net/k0Nk60 (Affiliate) *COURSERA WEB DEVELOPMENT* _(Full Stack, Front-End, Back-End, Web Design and a lot more):_ 🔗 imp.i384100.net/EKWxBW (Affiliate) Thank you for the support!❤ 🎥All my videos about Python: kzbin.info/aero/PLs8qUrmRvaR0IT4IwJl-LSweAdACW-yLK
@gemmalacdao
@gemmalacdao 7 ай бұрын
how to add background music in your game?😢
@maiktester5085
@maiktester5085 10 ай бұрын
Great Video, thanks for the help
@FabioMusanni
@FabioMusanni 10 ай бұрын
Thank you! Glad the video helped! 💪😊
@Manishincode
@Manishincode 6 ай бұрын
Best video on yt..
@STARBASS-Thema
@STARBASS-Thema 6 ай бұрын
Thanks, for this video. Now Pygame runs very well.
@FabioMusanni
@FabioMusanni 6 ай бұрын
Glad to hear that! 😍💪
@bitterbaI
@bitterbaI 8 ай бұрын
my game over music keeps repeating even tho i added the loop = 0. im so stuck
@mysterypotionx
@mysterypotionx 7 ай бұрын
Maybe you are looping the play command
@gunre0n
@gunre0n 6 ай бұрын
don't write anything in the brackets instead of the 'loops = 0' :d
@andrewthomas3467
@andrewthomas3467 9 ай бұрын
is there a way to have a sound keep repeatedly playing without having to manually enter an input?
@FabioMusanni
@FabioMusanni 9 ай бұрын
When you call "play", there should be an option called "loops", if you set that to -1 the sound will keep looping. I think I mentioned that somewhere in the video.
@ars44pro
@ars44pro 7 ай бұрын
the best video-instruction!!!!!!!!!!
@FabioMusanni
@FabioMusanni 7 ай бұрын
Glad you liked it, thank you for the comment! 💪😍
@RenRuin
@RenRuin Жыл бұрын
Thanks for this video. Really helped me figure out what I was doing wrong.
@FabioMusanni
@FabioMusanni Жыл бұрын
Thank you for the comment! 😍 I'm glad the video helped you shed some light on the topic 🤗💪
@minecrafttiger6198
@minecrafttiger6198 Жыл бұрын
Whenever music is in my while true loop it never plays
@FabioMusanni
@FabioMusanni Жыл бұрын
Hello 😊 If the code is the same, it's impossible it doesn't work, check carefully the indentation and the code itself.
@comingsoon578
@comingsoon578 9 ай бұрын
@@FabioMusanni I don't know why your code didn't worked for me, but it solved by doing this: mixer.init() sound = mixer.Sound('your_sound.mp3') sound.play() sleep(5)
Python Argparse Module - Create CLI and Run Scripts With Command Line Arguments
26:16
Fabio Musanni - Programming Channel
Рет қаралды 8 М.
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
Adding Sounds and Music To Your Game - PyGame Thursdays 6
9:39
Codemy.com
Рет қаралды 2,5 М.
Genetic Algorithm in Python generates Music (code included)
11:50
Pygame vs Raylib vs Arcade Pyglet: Which One Will Suprise You?
14:17
Extract Musical Notes from Audio in Python with FFT
10:26
Jeff Heaton
Рет қаралды 27 М.
Audio Data Processing in Python
19:52
Rob Mulla
Рет қаралды 174 М.
Saving and loading in pygame with json
25:23
Clear Code
Рет қаралды 30 М.
5 Good Python Habits
17:35
Indently
Рет қаралды 663 М.
Pygame Sprites And Groups Explained!
5:56
Coding With Russ
Рет қаралды 49 М.