(sorry for double posting... its because of that forum bug with the 500 reputation cap for posting links that prevents edits!)
I'm also having some sound issues...
On my local desktop it all works great - but on the android tablet no sounds are ever
played - be it exported or LAN preview.
I'm using the music folder for larger sounds (like ambient background sounds) and using the sounds folder for the smaller ones - i did try to preload some but nothing happens!
I tried CocoonJS and Dolphin browser as well as the default android browser. I'm using a Samsung Galaxy Tab 2.
What should i do now?
In despair i found two different topics that led me to understand what was wrong.play Audio in different browsers by Joe7
[quote=ashley]You should just import WAV files and Construct 2 will encode them to both OGG and M4A saving you the hassle of doing it yourself (M4A is only done on Windows 7+ though).
Construct 2 considers Ogg Vorbis files to be your project's audio files, and the M4As are a backup to the Vorbis file for browsers which don't support Ogg Vorbis. So you need the Ogg file first to be able to select it for the Play sound action. [/quote]Audio - No-Sound question
[quote=appmobiTyler]by appmobiTyler on Fri Jul 06, 2012 8:47 am
I did a little research and it appears that .ogg files aren't supported on your Samsung Galaxy android device. So it could be that everything is working but your test device is unable to play that audio extension. Try replacing your .ogg files with .mp3 files and see if that works for you.[/quote]
So i'm using a Samsung Galaxy Tab 2 (probably is currently the most common tab on the market?)...
-First i want to clear out another issue here: i used http:// audio.online-convert.com and THE m4a OUTPUT FILE WAS CORRUPTED. Be sure to confirm every file works before adding them.
OK. So I wasn't able to play sounds in .m4a nor .ogg formats - it didnt work on dolphin browser nor CocoonJS export, but i found out that if you add a wav file to a clean .capx project and you add an .mp3 file to the export, then it does work.
I think that cocoon wasn't able to play the .wav file but the browser was.
CocoonJS was able to reproduce the MP3 file that i added to the export zip.
So heres the sum up:
If you own a samsung or have a similar problem,
-Create a new clean project just to test out
-Add 1 .wav file and a trigger to play it
-Construct will convert it to ogg and m4a-Preview in lan (on your tablet)
-If it does not work - or if you're using CocoonJS, add a .mp3 to the export .zip
-Try it on CocoonJS and see if it works.
The first time i tried it i got really weird graphical bugs but i restarted the device (tablet) and it fixed the graphical bugs.
This method does increase filesize but at least it solves the sound issue.
I hope someone finds this usefull and i'm here to help in whatever i can.
I'll leave a link to a sound-working CocoonJS export:
(use a random soundfile with the name abrir_saco.wav)
Good luck everyone!