Clicking' Oggs
by Aaron Henselin · in Technical Issues · 06/25/2007 (10:58 pm) · 12 replies
I've got music in ogg format, which plays just fine in any audio player and I'm just using the template code to play it. And yet when I play it, I get, along with the song itself, 3 clicks every few seconds.
I tried the music as stereo, mono, and in different bitrates, and the problem still occurred. Finally I downloaded some sample oggs online, and they gave me the same issue. Has anyone else run into this issue?
Template code:
new AudioDescription (LoopingAudio)
{
volume = 1.0;
isLooping = true;
is3D = false;
type = $GuiAudioType;
};
new AudioProfile (BackgroundMusic)
{
filename = "~/data/audio/background.ogg";
description = "LoopingAudio";
preload = true;
};
I tried the music as stereo, mono, and in different bitrates, and the problem still occurred. Finally I downloaded some sample oggs online, and they gave me the same issue. Has anyone else run into this issue?
Template code:
new AudioDescription (LoopingAudio)
{
volume = 1.0;
isLooping = true;
is3D = false;
type = $GuiAudioType;
};
new AudioProfile (BackgroundMusic)
{
filename = "~/data/audio/background.ogg";
description = "LoopingAudio";
preload = true;
};
#2
You might want to try opening them in another tool and resavng them to see if that makes a difference.
07/10/2007 (2:12 pm)
It's been a while, but way back in TGE 1.3 before we switched to FMod, we would have issues with certain OGGs due to the software that encoded them or the quality settings used.You might want to try opening them in another tool and resavng them to see if that makes a difference.
#3
07/10/2007 (2:17 pm)
I had this problem with MP3's and OGG's from Soundtrack Pro a long while back. Logic and SoundForge saved them correctly for whatever reason.
#4
The file plays fine in VLC but 'clicks' when played in game. Does anyone have any other suggestions? I'm working with an external audio team, so rapid re-encoding isn't the easiest of tasks, but I will pester them as needed. Thanks for the help!
07/31/2007 (7:08 am)
I can't seem to solve this problem. I tried using multiple quality settings and even tried SoundForge as suggested above, but each file has the same problem.The file plays fine in VLC but 'clicks' when played in game. Does anyone have any other suggestions? I'm working with an external audio team, so rapid re-encoding isn't the easiest of tasks, but I will pester them as needed. Thanks for the help!
#5
08/09/2007 (6:17 pm)
I found a notation in the TGB general forums that switching out the openal32.dll for the newest version solves this issue, but TGB throws a fit when I try it and won't let me edit any projects. Anyone had any success with that trick?
#6
I think this is pretty unprofessional of garagegames to be releasing a new version of TGB in this state. Did they even take 5 minutes to test the sound system? They could have upgraded the version of OpenAL that's in the software at any time.
08/14/2007 (6:49 am)
This is not an OGG problem. At least not for me. I just tried testing my game music in the original wav format and I get the exact same clicking. This is on TGB 1.5.1.I think this is pretty unprofessional of garagegames to be releasing a new version of TGB in this state. Did they even take 5 minutes to test the sound system? They could have upgraded the version of OpenAL that's in the software at any time.
#7
12/04/2007 (2:27 pm)
Bump for still unresolved
#8
12/05/2007 (6:51 am)
Did an upgrade of OpenAL fix the problem? I know Apple's sound layer was OpenAL based when I had the problem, and Soundtrack and Logic may have been using different versions. TGE/TGB may be using an older version with a problem in the stream.
#9
12/05/2007 (9:04 pm)
Upgrading OpenAL didn't solve it for me, unfortunately.Thanks for the feedback though. Could it be an issue isolated to certain soundcards? The issue occurs on both of my testbeds, but they're both intel core chipsets - Sigmatel hd integrated audio.
#10
12/05/2007 (9:36 pm)
Upgrading OpenAL didn't solve it for me, unfortunately.Thanks for the feedback though. Could it be an issue isolated to certain soundcards? The issue occurs on both of my testbeds, but they're both intel core chipsets - Sigmatel hd integrated audio.
#11
Anybody know of a nice tutorial for putting FMOD into 1.5.1?
12/13/2007 (8:28 am)
After talking to Garagegames they recommended to us implementing FMOD into the engine. Which is problematic since we don't have alot of time and I haven't dealt with the engine source code much. Theres some instructions on this site about implementing it for I think version 1.1 of torque, but when I looked at the code they're asking you to modify, it had all shifted around.Anybody know of a nice tutorial for putting FMOD into 1.5.1?
#12
12/14/2007 (10:33 pm)
If I had $3000 to toss around FMOD would be a nice fix - but for the moment I'll keep waiting for a patch I guess.
Torque Owner Philip Tan