TGB Audio Bug
by Afan Olovcic · in Torque Game Builder · 02/07/2011 (8:47 am) · 3 replies
Hi
When I Build my game with TGB 1.7.5 Pro without cs files or when you delete cs files from your project
alxPlay dont play sound with this error in consol log
Unable to locate audio profile 'music2'
Unable to locate audio profile 'spark3'
Unable to locate audio profile 'spark3'
Unable to locate audio profile 'spark2'
Game works fine except No sound at all
ConsoleFunction(alxPlay, S32, 2, 5, "( profile [or handle]...
AudioProfile *profile = dynamic_cast<AudioProfile*>( Sim::findObject( argv[1] ) );
if (profile == NULL)
{
Con::printf("Unable to locate audio profile '%s'", argv[1]);
return NULL_AUDIOHANDLE;
}
argv[1] - is ok has name of AudioProfile
but
Sim::findObject( argv[1] ) returns Null
When I Build my game with TGB 1.7.5 Pro without cs files or when you delete cs files from your project
alxPlay dont play sound with this error in consol log
Unable to locate audio profile 'music2'
Unable to locate audio profile 'spark3'
Unable to locate audio profile 'spark3'
Unable to locate audio profile 'spark2'
Game works fine except No sound at all
ConsoleFunction(alxPlay, S32, 2, 5, "( profile [or handle]...
AudioProfile *profile = dynamic_cast<AudioProfile*>( Sim::findObject( argv[1] ) );
if (profile == NULL)
{
Con::printf("Unable to locate audio profile '%s'", argv[1]);
return NULL_AUDIOHANDLE;
}
argv[1] - is ok has name of AudioProfile
but
Sim::findObject( argv[1] ) returns Null
About the author
www.bootwars.com
#2
When you build with cs files it works .But if you delete cs script after that it game will work but without sounds.
02/07/2011 (10:31 am)
Yes they are.I try everything .To build without *.cs , and to build with *.cs.When you build with cs files it works .But if you delete cs script after that it game will work but without sounds.
#3
I'm only working through the tutorials, so I'll try this out and see if I have the same problem tomorrow or Wednesday.
02/07/2011 (9:21 pm)
That's weird.I'm only working through the tutorials, so I'll try this out and see if I have the same problem tomorrow or Wednesday.
Torque Owner Richard Ranft
Roostertail Games
I was having a problem where only background images would show after I did a project build, but after I manually copied my sprites to the build location everything worked properly with only .dso files in place. However, I didn't have any audio in that project so I didn't run into your issue.