nesrocks
Member
That's okay! I'm doing some tests using the extension demo project instead of mine to minimize confusion and hopefully I can come up with something.
edit: I think I have a not so pretty temporary workaround which is to reload the song everytime GME_Play() is used.
So GME_Play() becomes this:
Not sure how much of this is totally necessary (sound_index being reloaded and GME_StartTrack() seem to be), but it has fixed my problem.
edit: I think I have a not so pretty temporary workaround which is to reload the song everytime GME_Play() is used.
So GME_Play() becomes this:
Code:
/// @description GME_Play()
with obj_gme
{
if !playing
{
sound_index = GME_LoadSong("mysong.nsf");
if sound_index != noone
{
song_tracks = GME_NumTracks();
song_voices = GME_NumVoices();
GME_StartTrack(track_number);
name = GME_GetName();
author = GME_GetAuthor();
comment = GME_GetComment();
copyright = GME_GetCopyright();
pause = false;
tempo = 1;
playing = true;
}
}
if sound_index != noone audio_sound_gain(sound_index,mymusicvolume,0);
}
Last edited: