Python Forum
[PyGame] Audio gets muted when app minimized?
Thread Rating:
  • 1 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyGame] Audio gets muted when app minimized?
#6
I found the problem. Turns out using pygame.mixer.quit() and after that pygame.mixer.init() causes the issue. But the problem's that I need to do it this way in order to update the frequency for the current mp3 file in init(). If I don't first call quit() then the frequency won't update in the init() even if I specify it again.

So my player will either play the whole playlist uninterrupted but ignore mp3 file's frequencies (if a song has different than the default it sounds like the chipmunks...) or it will play all mp3 files in the required frequencies but won't be able to go from one song to the next automatically without some hack like maximizing the app window for the sound to come back and then minimizing it again (which is just ridiculous because it interrupts the user in a big way) thanks to the original issue stated above. Isn't there some way to have both of these things working together :( ?
Reply


Messages In This Thread
Audio gets muted when app minimized? - by MegasXLR - May-26-2018, 02:22 PM
RE: Audio gets muted when app minimized? - by MegasXLR - May-28-2018, 04:22 PM

Forum Jump:

User Panel Messages

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