Advertisement
Guest User

Untitled

a guest
Dec 9th, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. if (soundyyopenal != -1) || (is_playing_fmod != false)
  2. {
  3. show_message_async("Error: a sound is already playing, please click 3.");
  4. exit;
  5. }
  6. soundfmod = FMODGMS_Snd_LoadStream(working_directory+"bgm.at9");
  7. //soundfmod = FMODGMS_Snd_LoadSound(working_directory+"bgm.at9");
  8. //as mentioned by FMOD Docs, AT9 is useful for music, so LoadStream.
  9. FMODGMS_Snd_PlaySound(soundfmod,channel);
  10. is_playing_fmod = true;
  11. show_message_async("Played bgm.at9 using FMOD!"); // ^-^
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement