Play Sound stops working...
DaneC020
Member Posts: 90
in Tech Support
I have been posting and looking for about 2 months now and I am at my limit. God bless some of you for making games with this engine but it just seems impossible to debug properly. I have tried putting statements everywhere to make sure code reaches sections, I have all my global variables being sent to the debugger as well. Everything looks 100% ok but for some reason after awhile my sounds stop working. EVERYTHING stops except for the music.
I can even make a button on the side that has one rule for touch and a play sound. Even that will no longer work after I replay the game 3 times... It is a simple match game and I had published it several years ago using this engine and it worked fine then but now has this stupid audio issue... Is there any way to get exceptions that the engine may be having? All I can guess is there is a memory leak which causes it to stop working or there is an error that is happening under the hood that is causing audio to stop.
PS: Programming from scratch is easier than this lol.
-Dane
I can even make a button on the side that has one rule for touch and a play sound. Even that will no longer work after I replay the game 3 times... It is a simple match game and I had published it several years ago using this engine and it worked fine then but now has this stupid audio issue... Is there any way to get exceptions that the engine may be having? All I can guess is there is a memory leak which causes it to stop working or there is an error that is happening under the hood that is causing audio to stop.
PS: Programming from scratch is easier than this lol.
-Dane
Comments
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
Hello Dane, as far as I'm aware, there have been a few sound issues with the Windows version of GSC, but not, in the main, with the Mac version for a long time… so your prob. is perhaps a little bit surprising…
A couple of questions: what is the file type of the sound file you imported into GSC? And are you absolutely certain you've not changed scene and "left that rule behind" or turned the sound volume off with another rule somewhere?
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
As or leaving scenes, this all happens in one scene and the object is never being destroyed. As I said it is a memory style match game, and oddly enough it happens after I match 16 cards. That makes me think it is a code issue but I have went back to the main menu and used the Reset Game and Reset Scene Attributes, as well as manually reset all the variables. Nothing plays sounds even if I do that and go back to the game, but the music continues fine....
As for the sound files, I am using OGG format.
-Dane
… so if I understand you correctly, you're importing ogg files? As far as I've learned over the years, some types of ogg conversion differ from what's expected in GSC, so I'd steer clear of importing in that format… safer to import in aiff or wav(e) or mp3 and let GSC convert it to .ogg for sounds for you…
Although even if the ogg file wasn't right, whys should it work for 16 matches and the stop working only after that? I have to agree with you, it's got to be a programming issue, surely…
But what in the programming is causing it, that's the question…
Is it easy for you to post all the Rules associated with triggering that particular sound?
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
EI) I can go into the level, play 4 matches, back out and reset all data. Then repeat this 4 times and sound effects stop working. So in theory, if it doesn't error out on the first 4 and then everything resets... It has no reasons to fail on another arbitrary match if no major logic is changing....
I will try to swap out the sounds and see if I get any different results. I will also start stripping out all the fluff and see if I can pin point what is breaking it. I really wish there was a way to catch exceptions from the engine. That would let me know if it is a wonked rule or something else...
-Dane
Also, same as you, very simple scene, all happening in one scene, no actors being destroyed.
Anyone else getting the silent treatment?
Cheers
Wayne
http://forums.gamesalad.com/discussion/57827/possible-bug-sound-effects-cutting-out
Edit: @Slowboy's link explains it so nevermind.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
I am having this issue. I have tried making a sound manager so all my sounds are played from one actor. Didnt work. Tried re importing the specific sound didnt work.
Here is my specific problem, A correct answer sound plays when you answer a sound correctly. However never fails the 3rd time the sound is played it will simply not play anymore. There are more questions that happen during the boss, And if you skip ahead for testing purposes the correct sound will play. But never if you play all the way through it will play twice then stop. I have another game with tons of sounds and it's not an issue in there. Maybe I need to take all of the timers out of this one.
I was also having this same issue in 10.4.1. I tried everything as well. I want to give an update on my issue. I posted this in the other sound thread as well.
I tried out the nightly build for the first time tonight and got some VERY positive results.
"I went and tried out the latest nightly build and I can confirm that my sound issues seemed to be fixed in preview mode and the game played just fine. Therefore I assume that the sound issues I was having will be fixed in the next stable release since it is fixed in the latest nightly build."
They already have a 11.0.1 release candidate build that is there to try out so I guess the new version is gonna be released pretty soon. Hang in there. Good things are on the way.