mobilePlaySoundOnChannel - how to toggle looping of a sound ?
Posted: Tue Apr 30, 2024 9:29 am
Hi,
I run into an issue when I try to toggle the looping of a sound that was started with the mobilePlaySoundOnChannel command.
What I would like to do is analogous to this command for desktop:
Any suggestions on how to achieve this? I try to avoid using the mobile player, I like the simplicity of the mobilePlaySoundOnChannel command.
When thinking about it, the current implementation of mobilePlaySoundOnChannel is a bit unlogical, with the options being "now", "next" or "looping". I think "looping" should be rather treated like a property such as Channel Volume. It would be nice to set it independently from the mobilePlaySoundonChannel command, but maybe it is possible, I just didn't see it yet...
Thanks for any pointers!
Oliver
I run into an issue when I try to toggle the looping of a sound that was started with the mobilePlaySoundOnChannel command.
Code: Select all
mobilePlaySoundOnChannel sound, channel, type
Code: Select all
set the looping of player myplayer to not the looping of player myplayer
When thinking about it, the current implementation of mobilePlaySoundOnChannel is a bit unlogical, with the options being "now", "next" or "looping". I think "looping" should be rather treated like a property such as Channel Volume. It would be nice to set it independently from the mobilePlaySoundonChannel command, but maybe it is possible, I just didn't see it yet...
Thanks for any pointers!
Oliver