Compiler Error After Adding Audio [RESOLVED]
by Randy Lutcavich · in Torque X 2D · 09/07/2009 (7:19 am) · 23 replies
I'm attempting to add audio to my game. To start I just followed John's tutorial in chapter 15.
Everything seemed to go well but I am getting a compiler error that stops the game from running successfully.
Error 1 The command "if "x86"=="x86" "C:UsersRandyDocumentsVisual Studio 2008ProjectsDots 1.0Dots 1.0Gamebinx86DebugStarterGame2D.exe" -exportschema "C:UsersRandyDocumentsVisual Studio 2008ProjectsDots 1.0Dots 1.0Gamemyschema.txschema"
" exited with code -532459699. Game
Has anyone else gotten this before?
Everything seemed to go well but I am getting a compiler error that stops the game from running successfully.
Error 1 The command "if "x86"=="x86" "C:UsersRandyDocumentsVisual Studio 2008ProjectsDots 1.0Dots 1.0Gamebinx86DebugStarterGame2D.exe" -exportschema "C:UsersRandyDocumentsVisual Studio 2008ProjectsDots 1.0Dots 1.0Gamemyschema.txschema"
" exited with code -532459699. Game
Has anyone else gotten this before?
About the author
Recent Threads
#22
Does anyone know how to restart a sound clip? Or maybe loop it?
09/08/2009 (1:09 am)
Thanks again, I got that working by just setting up the cues and sound banks in Game and then just calling a method in Game to play them.Does anyone know how to restart a sound clip? Or maybe loop it?
#23
John K.
www.envygames.com
09/08/2009 (2:15 am)
To restart, you need to stop the Cue and then Play again. To make a sound loop automatically, go into XACT3 and set the Cue properties to Loop Enabled. John K.
www.envygames.com
Associate John Kanalakis
EnvyGames
public void myMethodInSomeClass { Game.Instance.Engine.SFXDevice() }And, you can also make your _backgroundCue public (or even better, expose it with an accessor method.public Cue MyCue { get{ return _backgroundCue; } }And, then call it...public void myMethodInSomeClass { Game.Instance.MyCue.Play(); }That should do it.John K.
www.envygames.com