Jump to content

Photo

void SetDMapEnhancedMusic(int dmap, int filename[], int track);


  • Please log in to reply
No replies to this topic

#1 nyrox

nyrox

    Junior

  • Members
  • Location:Québec

Posted 27 July 2021 - 07:12 PM

In 2.53 beta 52

i used this fonction  void SetDMapEnhancedMusic(int dmap, int filename[], int track);

for change the dmap EnhancedMusic  but after change the music restart each time when  I change screen. Why ? normal the music continue when change screen  and stop just when change dmap

 

 

I just want change the dmap music not just for the current screen,  but for the dmap as long my condition to return to normal was done. after i will reset to the old music.

 

code

.....

int Music[255] = "16 Light Side Field.spc";
int Music2[255] = "123 Save Them!.spc";
int MusicCheck[255]= "";
Game->GetDMapMusicFilename(49, MusicCheck);

 

......

 

if(strcmp(MusicCheck, Music) == 0){
     Game->PlayEnhancedMusic(Music2, 0);
     Game->SetDMapEnhancedMusic(49, Music2, 0);
     Game->GetDMapMusicFilename(49, MusicCheck);

}    




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users