Click sound delay on Android

Get help using Construct 2

Post » Thu Jun 18, 2015 1:24 pm

Have you tried preloading the audio when the Layout loads?

I had the delayed sound problem and found that to help.

It still did depend on device and the amount of memory my game was using. Between preloading and shrinking the game down in Events and the size of images it ended up running well, including audio, on all devices.
B
7
S
3
Posts: 30
Reputation: 687

Post » Sun Jun 21, 2015 5:49 am

I have the same problem and here Ashley's anwser fx-sound-audio-delay-in-android_t120586
B
13
S
1
Posts: 97
Reputation: 883

Post » Sun Jul 05, 2015 11:11 am

Lordshiva1948 wrote:It works fine on Samsung Galaxy S6, Samsung Galaxy 5, Samsung Galaxy Tab, Sony M2, Samsung Galaxy Note 3 . So it looks like it depends on mobile


I have the delay on my Note 3 :/
B
7
S
1
Posts: 33
Reputation: 489

Post » Thu Jul 16, 2015 1:39 pm

What kinda worked for me:

1. move sound from Sounds directory (in C2) to Music directory
2. prelod that sound in event sheet on start of the project

After that my delay on SGS4 decreased from 0.5s to 0.1s which is pretty acceptable.
ImageImageImage
B
27
S
16
G
80
Posts: 1,020
Reputation: 44,759

Post » Thu Jul 23, 2015 5:54 am

I fixed my delay issue in Android devices by javascript :
I added following code in index.html

Code: Select all
<script>
     function playAudio(){     
            var myAudio = new Audio("click.m4a");
            myAudio.play();
     }
</script>

Then Call : Browers-> Execute Javascript("playAudio();"); in C2 everytime user click
P/S: Can't use .ogg , I'm using .m4a instead.

Hopefully someone can make it become a plugin in C2. It worked very great, even on slow Android devices.
B
13
S
1
Posts: 97
Reputation: 883

Previous

Return to How do I....?

Who is online

Users browsing this forum: Kin, Yahoo [Bot] and 36 guests