R108.2 Music stuck when switching layout

Bugs will be moved here once resolved.

Post » Sun Nov 04, 2012 2:17 pm

https://dl.dropbox.com/u/32679138/bug%20bgm.capx
(Just open the capx, and wait for 10 second, it will switch automatically between layout and provoke the "music stuck")

When transitioning back to a layout, the music will get stuck for a while, before continuing.

Layout 1   ------------->Layout 2 ------------------->Layout 1
BGM playing                                    BGM st-st-st-st-stuck


My system:
Window 7 Ultimate 64 bit
Graphic card GTX 460(graphics drivers up to date)

Run on Google Chrome (21.0.1180.89)



PS:I can work around the problem with "Trigger once" condition, but I rather not because I have other events counting on this one..
B
12
S
4
G
4
Posts: 64
Reputation: 4,014

Post » Sun Nov 04, 2012 6:37 pm

It's not a bug, your events say to play music like that. Note an event with no conditions means "every tick".
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Sun Nov 04, 2012 7:21 pm

I was aware of that but why wasn't the music play that way upon startup? and why wasn't it playing that way after a period of "stuck" when the game back to layout 1(the second time)?

Just ask on basis of curiosity, you may not answer it =) I have found the actual correct way to work the bgm =DZhaoYun2012-11-04 19:25:18
B
12
S
4
G
4
Posts: 64
Reputation: 4,014

Post » Mon Nov 05, 2012 12:52 am

You start a new instance of playing a large music track (a couple of megabytes) 60 times a second. This probably totally overloads the audio engine, anything could happen at all.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Mon Nov 05, 2012 9:45 am

I see! thanks for the explanation!
B
12
S
4
G
4
Posts: 64
Reputation: 4,014


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 5 guests