I was using Coco2d v2.2 I updated to v3.0 and I am having problem with sounds.
In v2.2 I had both sources ("ogg" for android and "mp3" for iOs). To play the sounds, I used the following function:
It worked fine without having to specify if it was "mp3"or "ogg".
Now in version v3 I had to change my code to:
I had to specify if it was "ogg" or "mp3" because I was getting an error.
My question is if I am doing it correctly and if there is a way to verify the Operational System is android or iOs.
Also, the sound plays fine in my iMac but it is not working on my iPhone while it is working working fine on my android phone.