Sounds not playing over speaker
galasea
Member Posts: 17
Hello,
I tested a game I'm developing with the GameSalad viewer for the first time on an iPhone 3G, 4 and 4S, and on all of these devices the audio doesn't play over the speakers. However, when I plug earbuds into the speaker jack, I can hear the sounds from my game playing just fine. I have not been able to test my game on an iPhone5 yet.
What could be the cause of this and how can I fix it? I'm currently using the Play Sound behavior (playing to completion, loop unchecked, positional sound unchecked) in various rules to get sounds to play when certain events occur.
I tested a game I'm developing with the GameSalad viewer for the first time on an iPhone 3G, 4 and 4S, and on all of these devices the audio doesn't play over the speakers. However, when I plug earbuds into the speaker jack, I can hear the sounds from my game playing just fine. I have not been able to test my game on an iPhone5 yet.
What could be the cause of this and how can I fix it? I'm currently using the Play Sound behavior (playing to completion, loop unchecked, positional sound unchecked) in various rules to get sounds to play when certain events occur.
Comments
Are you running an adhoc build or via the GameSalad Viewer?
To get a real-world test publish out an adhoc build and test it out. If the issue is still occurring make sure EVERYTHING is up-to-date (should be, as typically the viewer would not work otherwise). If the issue is still occurring, hit us back with more details, and/or screenshots of your sound code execution method.
Based on RP's suggestion, I tested my game adhoc on an iPhone 3G, 4 and 5 (the 4S I was testing on took off for the holidays), and I am still having the same problem on all of these devices. Nothing is playing over the speaker, but I can hear it all just fine when I plug in ear phones. I'm using the latest version of GS and GS Viewer and the phones have all been updated to either iOS 6.0 or 6.0.1. I checked the phones' audio settings and they are not muted or silent, and they seem to play sounds just fine for other apps over their speakers.
My game currently doesn't have any music so the only thing I'm using for audio right now is the Play Sound behavior. This occurs in two cases: 1) an actor collides with another actor or 2) touch is pressed and is inside an actor. The settings for this behavior is Volume 1, Pitch 1, No Loop, No Positional Sound, Run to Completion. The sound files are mp3 and wav format.
See if you can get this to work on your iPhone/s - and report back !