Maybe I do not understand what GameSuspend means,
but when I compile my game or Hekkus sample from the PocketFrog samples - GameSuspend doesn't work.
I switch my app to background both on PC and PPC but the music still plays.
And it's sure not a Hekkus fault - I added Shutdown in the HekkusSample to see if the GameSuspend or GameResume ever called, but they aren't:
I tried Alt-Tab, just clicking on background window or ShowWindow(SW_MINIMIZE)
I use 0.8.1 and recompiled the libs several times.
Maybe I'm missing something really obvious?
But as I expect GameSuspend should be automatically called when app goes on background
(lost focus,or inactive) is it true?
I didn't change the code in HekkusSample, only 2 lines with Shutdown - GameSuspend and GameResume are still public virtual void.
I attached HekkusSample (hss.dll and exe) to this post - it should call Shutdown() if GameSuspend or GameResume is called, just put it into Hekkus sample folder to try on a PC.
OK finally my question - HOW TO MAKE THE GAME SUSPEND on battery messages or just switching to background, I found some previous threads discussing this problem, but they didn't help
Nothing crashing - just the GameSuspend and GameResume never called
Ben
but when I compile my game or Hekkus sample from the PocketFrog samples - GameSuspend doesn't work.
I switch my app to background both on PC and PPC but the music still plays.
And it's sure not a Hekkus fault - I added Shutdown in the HekkusSample to see if the GameSuspend or GameResume ever called, but they aren't:
- Code:
void HekkusSample::GameSuspend()
{
// Suspend the Hekkus Sound System
m_sound.suspend();
Shutdown();
}
I tried Alt-Tab, just clicking on background window or ShowWindow(SW_MINIMIZE)
I use 0.8.1 and recompiled the libs several times.
Maybe I'm missing something really obvious?
But as I expect GameSuspend should be automatically called when app goes on background
I didn't change the code in HekkusSample, only 2 lines with Shutdown - GameSuspend and GameResume are still public virtual void.
I attached HekkusSample (hss.dll and exe) to this post - it should call Shutdown() if GameSuspend or GameResume is called, just put it into Hekkus sample folder to try on a PC.
OK finally my question - HOW TO MAKE THE GAME SUSPEND on battery messages or just switching to background, I found some previous threads discussing this problem, but they didn't help
Nothing crashing - just the GameSuspend and GameResume never called
Ben
Attachments:
HekkusSample.zip (167 KB)