Toggle silent not muteing ingame music (Cocoon.io)

Chat about anything not covered in these forums, but keep it civil!

Post » Tue Mar 22, 2016 11:36 pm

I added some music to my game and added mute button with "Toggle silent" functionality. The thing is, after compiling the APK with Cocoon.io, the button mutes only soundeffects of the game but not the music? It works when previewing project in C2, but after installing the apk on the phone it doesn't mute the music...

Anyone had similar experience?
Image
B
7
S
1
Posts: 70
Reputation: 843

Post » Tue Mar 22, 2016 11:42 pm

@saf I had the same problem. Doesn't seem to work after export. So I used set volume to -100 to simulate mute and 0 for not muted and that works well. But there are other solutions you can use if it suits better.
B
54
S
23
G
12
Posts: 747
Reputation: 11,910

Post » Wed Mar 23, 2016 8:14 am

Anonnymitet wrote:@saf I had the same problem. Doesn't seem to work after export. So I used set volume to -100 to simulate mute and 0 for not muted and that works well. But there are other solutions you can use if it suits better.


Thanks for the quick reply. I'm confused why the sound effects (jump sound, power-up etc...) get muted and the music doesn't. I'll try to work around it but would really like to understand why this happens...
Image
B
7
S
1
Posts: 70
Reputation: 843

Post » Thu Mar 24, 2016 9:13 am

@saf I understand that. I haven't used silent mode recently but I put all my music in the sound folder when working on mobile games instead of the music folder so the game loads all sounds and everything plays when it should without delays.

This is OK as long as you have small loops but if you have really big soundtracks then they should be in the music folder to avoid long loading times. But for small sized music files the sound folder have worked much better than it does when I put them in the music folder.
B
54
S
23
G
12
Posts: 747
Reputation: 11,910

Post » Fri Mar 25, 2016 10:43 am

I've isolated that this is a Canvas+ issue, when compilling using Webview+ everything works as expected...
Image
B
7
S
1
Posts: 70
Reputation: 843


Return to Open Topic

Who is online

Users browsing this forum: Dwm247, KVivien and 3 guests