Chaos Project

RPG Maker => RPG Maker Scripts => Script Requests => Topic started by: Zexion on February 26, 2011, 10:23:38 am

Title: Music stops when window is unactive
Post by: Zexion on February 26, 2011, 10:23:38 am
Okay well this isn't like OMG I NEED THIS, but it is kinda annoying and I want to fix it. I have a pretitle map thing, that shows an intro with music and all and then shows map which is the title. I made it so that the music lines up perfectly with the transition to the title, buuuut whenever I play the game, it starts playing the music even if you minimize the window, and then when you bring it up again the music is in the wrong place, and makes the transition look wierd. Is there a way to stop the music, orrr is there a way to make the event continue even when the window is down?
Title: Re: Music stops when window is unactive
Post by: Blizzard on February 26, 2011, 11:07:08 am
Cannot be done with RMXP. That is, there is no way to do it properly without the window causing bugs. Sometimes the window would stop the music, sometimes not. Mainly also because RMXP doesn't allow you to pause and resume music.
Title: Re: Music stops when window is unactive
Post by: Zexion on February 26, 2011, 12:53:30 pm
Oh okay then :P at least now i know hehe.
Title: Re: Music stops when window is unactive
Post by: Blizzard on February 27, 2011, 04:05:19 am
The only way you can achieve pause/resume this is to use a custom audio module. But custom audio modules have a different way of playing back midi files so they don't sound the same as with RMXP's native audio module. But the window thing wouldn't probably work because when you deactivate the RMXP window, it stops executing any code so you can't pause the music there.
Title: Re: Music stops when window is unactive
Post by: G_G on February 27, 2011, 04:10:50 am
Try this maybe? http://www.hbgames.org/forums/viewtopic.php?f=11&t=71126
Title: Re: Music stops when window is unactive
Post by: Blizzard on February 27, 2011, 04:38:27 am
Ah, he made an additional exe. Well, this is one way of doing it.
Title: Re: Music stops when window is unactive
Post by: Zexion on February 27, 2011, 05:10:47 am
hmm idk what is wrong, but I did what it said. (inserted the script, placed the exe in the folder)
It wont pause, but it does make it sound slightly jumpy.