|
dev.gamez.lv Latvian Game Developers Community
|
View previous topic :: View next topic |
Author |
Message |
bubu Indago Uzvarētājs
Joined: 23 Mar 2004 Posts: 3223 Location: Riga
|
Posted: Fri Sep 11, 2009 9:19 am Post subject: |
|
Iesaku tev kārtīgi palasīt dokumentācijā ko dara setSoundStopEventReceiver metode un kam domāta ISoundStopEventReceiver klase ar OnSoundStopped callbacku. Patlaban tu tur galīgi neizsauc nākamās skaņas atskaņošanu.
Var arī katrai skaņai netaisīt to MySoundEndReceiver klases instanci. Pietiek ar vienu, kuru padot kā SoundStopEvent receiveri visām skaņām ar attiecīgo norādi uz nākamo skaņu, kuru spēlēt, kad patreizējā beidzās.
Un kāpēc tas nesakrīt ar manu pseidokodu? Imho ļoti sakrīt. onSongHasEnded = OnSoundStopped, atliek tikai tajā izsaukt playNextSong analogu. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|