Compiling game with 1.7.5 engine with SDK 10.6 = audio stop working
by Petr Vodak · in Torque Game Builder · 03/01/2012 (1:26 pm) · 17 replies
We have made some small changes in T2D 1.7.5 engine (added some math functions), so I have to recompile the game.
Using new compiled app file, the game runs OK, but audio is completely deaf. No sound or music and even no errors when using alxPlay command.
Using the old app file in same game directory with same game scripts, audio runs ok.
I am running Snow Leopard 10.6.8
Compiling with LLVM GCC 4.2, using SDK 10.6. I have OpenAL framework linked as resource library and have no error during compilation indeed.
Previous working version is from November, where I probably used older SDK 10.5.
Any idea what can be wrong?
Using new compiled app file, the game runs OK, but audio is completely deaf. No sound or music and even no errors when using alxPlay command.
Using the old app file in same game directory with same game scripts, audio runs ok.
I am running Snow Leopard 10.6.8
Compiling with LLVM GCC 4.2, using SDK 10.6. I have OpenAL framework linked as resource library and have no error during compilation indeed.
Previous working version is from November, where I probably used older SDK 10.5.
Any idea what can be wrong?
About the author
www.about-fun.com
Recent Threads
#2
03/01/2012 (4:45 pm)
I second Ronny's suggestion, mainly because we just talked about it in IRC. Try the latest Xiph libraries. If that works, I will make sure they are bundled with the next release.
#3
03/07/2012 (9:04 am)
Thanks, I will try latest Xiph libraries and let you know, how they work.
#4
Any other idea that might help?
03/11/2012 (12:40 pm)
Well, It wasn't easy to integrate those libraries to engine and what is worse, it didn't help :(. Any other idea that might help?
#5
03/16/2012 (7:05 am)
@Petr - I will be taking a stab at this over the weekend. Someone else reported a bug related to ogg crashing their system. I think the issue is related to your bug report. I will let you know what I come up with.
#6
03/16/2012 (8:57 am)
@Michael Great, I'll be waiting.
#7
03/21/2012 (5:45 am)
@Michael - Any news?
#8
03/23/2012 (12:49 pm)
My system must be dirtied up because I'm not seeing the issue on my machine. I'll have to wipe the Xcode and TGB installation and try again.
#9
03/25/2012 (3:45 pm)
I see. Do you have same configuration? Compiler and SDK/xcode version especially? I really need to get rid of this problem ASAP, as we have to send beta version of our game to publishers tomorrow... :(
#10
03/27/2012 (9:20 am)
The problem is in combination of LLVM compiler, libvorbis and maybe OS version - 10.6.8 (Snow Leopard). I'll have to try to get non-LLVM GCC compiler to my XCODE 4.2, because it should help, although it's only temporary solution as Apple will not support GCC anymore. Last supported version was 4.2 and they are now focusing on LLVM and clang...
#11
03/27/2012 (11:38 am)
I think both libvorbis and libogg have issues with LLVM. I noticed it already in LLVM-GCC when trying it on iOS. Not sure about Theora, but if the Ogg containers can't be read it' a moot point. It's a problem for Xiph.org, I'm sure. And now a problem for us :/
#12
03/30/2012 (3:12 pm)
Any update on this issue? Wondering if there's been any luck recreating this issue and any fixes? We are blocked on Mac development till this gets worked out, or I finally get my snow leopard machine back and can use Xcode 3 again.
#13
04/02/2012 (1:18 pm)
I have XCODE 4 on Snow Leopard. I was unable to find any good guidelines to install non-LLVM GCC (4.2 preferably)... because that would definitely help. Is it even possible? Or do I have to get XCode 3 instead of 4?
#14
"/Developer/Library/Xcode/PrivatePlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer/Library/Xcode/Plug-ins/GCC 4.2.xcplugin/Contents/Resources/GCC 4.2.xcspec"
Edit this file and change lines 41 and 42 from this:
ShowInCompilerSelectionPopup = NO;
IsNoLongerSupported = YES;
to this:
ShowInCompilerSelectionPopup = YES;
IsNoLongerSupported = NO;
04/02/2012 (2:34 pm)
Ok, got it! Fully working non-LLVM GCC 4.2 with XCODE4."/Developer/Library/Xcode/PrivatePlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer/Library/Xcode/Plug-ins/GCC 4.2.xcplugin/Contents/Resources/GCC 4.2.xcspec"
Edit this file and change lines 41 and 42 from this:
ShowInCompilerSelectionPopup = NO;
IsNoLongerSupported = YES;
to this:
ShowInCompilerSelectionPopup = YES;
IsNoLongerSupported = NO;
#15
04/03/2012 (2:48 pm)
Hi Peter, did you also have to install a new version of the GCC compiler, or when you made these changes, was the non LLVM version of the GCC compiler already there to select?
#16
04/04/2012 (4:10 am)
I only have to made changes in the GCC 4.2.xcspec file. I have XCODE 4.2.
#17
trac.xiph.org/attachment/ticket/1707/vorbis.diff
04/08/2012 (5:26 am)
I discovered that this has been a known problem for some time, but also tricky to reproduce. This patch might help some:trac.xiph.org/attachment/ticket/1707/vorbis.diff
Torque 3D Owner Ronny Bangsund
Torque Cheerleaders