CocoonJS Problem with music/sound loading Android

Discussion and feedback on Construct 2

Post » Sat Dec 15, 2012 7:10 pm

Hello,

I have a strange problems with CocoonJS music/sound loading on Android telephone. I have tried many variants:

- Preload of 0,50,100% of my sound/music files
- Preload (by name) of 0,50,100% of my sound/music files
- Without preload and preload (by name) of sound/music files
- Moving background music file inside "Music" folder
- Moving background music file inside "Sounds" folder
- Preload of 3-4 important sounds file with preload of background music file
- Preload of 3-4 important sounds file without preload of background music file
- Preload of background music file as first file from list
- Preload of background music file as last file from list
...

Every time final result is "Random" loading of music/sound files on Android.

I found other peoples with the same problem:

[QUOTE=NewSkool]I've been trying my game on using the @ludei Android CocconJs launcher on my Samsung GS2.

I am having similar audio problems as others have described. Sometimes I get audio, other times I don't. Often, I get audio late, e.g. a second or two after the event. (I don't have music.)[/QUOTE]
http://www.scirra.com/forum/new-cocoonjs-launcher-app-released_topic54065_page5.html

[QUOTE=superkew] I also had an issue with sounds on Cocoonjs. Music doesn't play, and some sounds only start playing randomly after a period of time.[/QUOTE]

[QUOTE=Epox] I have similar issue that others. The BG music starts, but the Sounds - in my case these are narrations - do not first time. In my stroybook the first time a page is displayed, the narration not starts, but the second time.

I would like to ask if there is any lenght/size limitation of the sound files? I'll try to preload the sounds...[/QUOTE]
http://www.scirra.com/forum/cocoonjs-deploy-your-games-as-native-mobile-apps_topic50126_page11.html

I recorded video to show this problem with these settings:




No matter preloading or not, final result is random loading of music and sound effects.

YouTube Video:
http://youtu.be/MiNgqhfE38M

Construct 2 r112
CocoonJS Launcher 1.2 for Android
Samsung Galaxy W I8150theone862012-12-15 19:12:10
B
9
S
1
G
2
Posts: 10
Reputation: 2,245

Post » Fri Mar 15, 2013 6:03 am

Same problem here and I tried using LG phone and Galaxy Tab and Nexus 7 Tab.. same results as you described. Any luck resolving your issue?

Thanks
B
5
Posts: 1
Reputation: 577

Post » Fri Mar 15, 2013 6:37 am

I have been experiencing similar issues. The audio just seems inconsistent. It often doesn't play or sometimes it is perfect and I can't work out why.

One thing I've notice is even when you only compile for Android the APK export still contains .ogg and .m4a files. I've started deleting the oggs from the zip file, which has saved RAM and file size, but doesn't affect the inconsistency of performance.

It happens even when FPS is quite high and the game is running smoothly. The sound clips are all small (less than 1 sec at 96Kb/sec ), with a maximum of 20 on any one layout).

Results so far have been the same on:

Samsung Galaxy S1 and Samsung Mini both running Android 2.3
Google Nexus 7 running Android 4.2
HTC Evo running Android 4.0

@Ludei, I noticed on your forum back in December you were planning to re-write your audio engine. Please could you give an ETA (or how high it is up your priority list) of when these audio problems are likely to be fixed?

Our current game, soon to be released, relies heavily on audio, and it really is a priority for us.

Many Thanks
Nathan2013-03-15 06:51:52
B
29
S
8
G
4
Posts: 61
Reputation: 6,205

Post » Fri Mar 15, 2013 2:12 pm

Have you tried contacting Ludei about this? Our audio engine works fine in browsers, so presumably this is a CocoonJS problem that needs to be fixed.
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,564

Post » Wed Jun 19, 2013 4:03 pm

Still problems with SOunds... and yes i contected ludei.... i wait for reply 14 dys...
B
24
S
4
G
2
Posts: 318
Reputation: 2,446

Post » Thu Jun 20, 2013 2:19 pm

Please let us know what they say.

I'm also having strange problems with sounds. Preloading helps, but it still behaves differently than in browsers. It would be great if Ludei people could provide us with some guidelines for using sounds. It doesn't have to be perfect, but is should be consistent at least. Right now certain things in sound system seem to be happening randomly or against all logic.
B
24
S
3
G
5
Posts: 4
Reputation: 4,027

Post » Thu Jun 20, 2013 2:54 pm

They say on their forum that the new version of cocoon has a rewritten audio engine so hopefully the audio problems will be solved.
B
29
S
8
G
4
Posts: 61
Reputation: 6,205

Post » Wed Jul 17, 2013 6:26 pm

My audio file plays fine on browser and cuts off prematurely at the exact same place on Samsung GS3.    ....I will keep searching.   This post has no more replies...I have hope....Squirrely12013-07-17 18:27:23
B
16
S
2
G
1
Posts: 35
Reputation: 1,033

Post » Fri Jul 19, 2013 6:22 pm

New audio engine works good on a lot of newer devices.
Unfortunately it crashed every 2.x device I tried and this is a major issue.Knifegrinder2013-07-19 18:24:42
B
11
S
3
Posts: 224
Reputation: 2,028

Post » Sun Aug 11, 2013 8:41 am

I'm having a problem.. when I minimize the game on android and resume it... the background music will be playing twice. Even it I stop all sound ,one of the instances (of the sound) will continue to play.

Anyone else have this problem?
B
9
S
4
G
1
Posts: 102
Reputation: 2,274

Next

Return to Construct 2 General

Who is online

Users browsing this forum: Eisenhans, Mirlas, Yahoo [Bot], Zebbi and 14 guests