Audio in TGB stopped working **SOLVED**
by Edwin Rivera · in Torque Game Builder · 01/04/2012 (2:01 pm) · 3 replies
Hi, I hope anyone can offer me some advice here. I have been working on my project for a while and the audio was working perfectly, one day it just stop playing, I get no error whatsoever. Now if I start a new project and include the audio.cs and execute it I have sound. I have also noted that If i copy some of my script from my current project to a new project that audio will work, but not on my current project. I can't figure out what could be causing it, and simply just dropping my levels and files into the new project wont work for me, cause I get a lot errors and it will be a lot of backtracking. Can anyone offer some advice, please?
Thanks in advance.
Edwin
UPDATE: Well I didnt really find a solution to the problem, except to create a new project and copy all of my files over (levels, image, script, datablocks) and after working out a few missing datablocks errors i have it working again, with sound.
Thanks in advance.
Edwin
UPDATE: Well I didnt really find a solution to the problem, except to create a new project and copy all of my files over (levels, image, script, datablocks) and after working out a few missing datablocks errors i have it working again, with sound.
#2
I didnt add any new code recently related to audio or that made use of audio. I just recently implemented the A* example that it is found in the tutorials, and i've been combing my code and i cant solve this issue. I have finally just decided to create a new project and copy my old one over it and just try to work out the few errors im getting this way, because at least this way my audio works. And that's what is weird is that my game will have audio if i take all of the code and files and place it in a new, blank project, but not as is.
01/04/2012 (4:19 pm)
Hey Harry, Thanks for the quick reply I will take a look to see if that's what's causing it.I didnt add any new code recently related to audio or that made use of audio. I just recently implemented the A* example that it is found in the tutorials, and i've been combing my code and i cant solve this issue. I have finally just decided to create a new project and copy my old one over it and just try to work out the few errors im getting this way, because at least this way my audio works. And that's what is weird is that my game will have audio if i take all of the code and files and place it in a new, blank project, but not as is.
#3
01/06/2012 (8:08 am)
Probably you ran out of memory when you added some new levels or art, and because of that TGB don't playback any audio, this is just a theory, not jumping to any conclusion
Torque 3D Owner Harry Durnan
I've run into one issue where trying to add music playing as my game started up randomly caused the volume to get set to 0. Scheduling it out by a second fixed that for me.
Though, there are probably lots of ways sound can get broken in scripting. You might want to try echoing out the volume value of your AudioDescription.. make sure you didn't accidentally use the global variable for the audio type somewhere else (easier to do if your using a script editor that autofills).