Bug Issue: On mobile Play/Loop block freezes the scene and audio delay


Pages: 1

havana24

  • Subscriber - Stencyl Studio
  • *
June 01, 2018, 09:13:32 am
I tested my game on Android with Stencyl 3.5 build9886.

I noticed two bugs with Play/Loop sound block:
1. Every time I load the scene and I Play/Loop a music (Sound type: Music) on created, the scene take a while to load (eg, I see the black screen of the scene transition for like 1 second).
But even when I stop all sound in a scene and then Play/Loop it again the scene freezes for like 1 second.
Attached the trigger event that I trigger on scene created. If I disable this the game runs fine.


2. When I play a sound (Sound type: sound effect) I hear the sound like 0,5 sec later and not immediately. (eg. my character jump and after 0,5 sec I hear the jump sound).

Thanks in advance,
Alessandro


rob1221

  • Master Stencyler
  • *
June 01, 2018, 11:02:12 am
Duplicate of http://community.stencyl.com/index.php?issue=1114.0

Since music streaming stopped working due to changes in OpenFL, music causes a loading delay just like sounds.  Since music isn't stored like sounds are, it's actually the worse option right now.
  • Status changed from New to Duplicate


havana24

  • Subscriber - Stencyl Studio
  • *
June 02, 2018, 12:39:03 am
Ok Rob,

And what about the sound effect delay?

Quote
2. When I play a sound (Sound type: sound effect) I hear the sound like 0,5 sec later and not immediately. (eg. my character jump and after 0,5 sec I hear the jump sound).


rob1221

  • Master Stencyler
  • *
June 02, 2018, 05:03:47 am
That might be a device-specific problem, but I'm not sure.
http://community.stencyl.com/index.php/topic,44577.msg248740.html#msg248740


havana24

  • Subscriber - Stencyl Studio
  • *
June 04, 2018, 05:15:25 am
Ok, thanks Rob.

About the number 1: I changed all the type "music" to type "Sound effect" and I see an improvement but only the second time I try to loop them.
Seems like sound effects needs to be loaded and after they are in memory there is no problem by stopping/playing them.
But, for example, in the middle of a scene I stop the current music and play another one that I didn't play in that session the game freezes for 0.5 sec.
But after that, even in other scenes, if I try to play/loop the same music the game runs smoothly.
There is a way to fix that?


rob1221

  • Master Stencyler
  • *
June 04, 2018, 06:25:36 am
There's no way that I'm aware of to avoid the freezing.


havana24

  • Subscriber - Stencyl Studio
  • *
June 04, 2018, 07:24:58 am
Well, that's a problem...
There is no way to preload sounds?


rob1221

  • Master Stencyler
  • *
June 04, 2018, 07:33:53 am
You could try playing them at the start of your game with volume muted.


havana24

  • Subscriber - Stencyl Studio
  • *
June 05, 2018, 05:57:00 am
I tried playing 3 background music and stop them right after.
I see a huge freeze and then them work fine after this initialization.
Is it a Stencyl problem or a Openfl problem?


rob1221

  • Master Stencyler
  • *
June 05, 2018, 08:01:10 am
OpenFL


Justin

  • Master Stencyler
  • *
June 12, 2018, 10:13:43 am
Fixed streaming music in b9896.


Pages: 1

Details

  • Reported
    June 01, 2018, 09:13:32 am
  • Updated
    June 12, 2018, 10:13:43 am

  • View Status
    Public
  • Type
    Bug
  • Status
    Duplicate
  • Priority
    Normal
  • Version
    Stencyl 3.5
  • Fixed in
    (none)
  • Assigned to
    (none)
  • Category
    Design Mode Blocks

Tags