Grey Alien Games Framework - Music Issue Help!

BlitzMax Forums/BlitzMax Programming/Grey Alien Games Framework - Music Issue Help!

therevills(Posted 2011) [#1]
Hi All,

I've just started a new project using Grey Alien Framework (GAF), but for some strange reason when I quit my game the music fades but just when the game exits you can hear a slight noise. I'm pretty sure I've had this in the past but I can't remember how I've fixed it in the past - too much Monkey I think!!

Has anyone had this issue?

Heres my code:





I've been banging my head against the desk for the past few days on this!!

Cheers!


therevills(Posted 2011) [#2]
Jake (Grey Alien) has found a workaround to fix this, but it looks like it might be a BlitzMax issue, I'll do some more testing with just pure BlitzMax code.

Jake's suggested fix is to add this, to the top of Shutdown():
For Local i%=0 To 60
        Flip 1
Next


Thanks again Jake :)

Last edited 2011


Grey Alien(Posted 2011) [#3]
A loop of 20 works on my PC. It must be some kinda Blitz or OpenAL bug because delaying the shutdown of a game so a fadeout stays at 0 volume shouldn't need to be done...