Other sound than Wav?
by Jakob Eklund · in Torque Game Builder · 11/08/2006 (1:55 am) · 1 replies
Is there any way to get TGB to play other soundfiles than wav?
I tried just doing it this way:
new AudioProfile(some_music_MU)
{
filename = "~/data/audio/Some music.mp3";
description = "Looping_AD";
preload = true;
};
but when i typed "alxPlay(aome_music_MU) ;" in the console everything crached. And by everything I mean EVERYTHING. I had to restart my computer by pushing the powerswitch.
Because I am a very stubborn person I tried the same thing again with a midi-file, and the same thing happened, exept that this time when booting up Windows again I got the "Checking for really really bad things on you harddrive, please wait."-screen.
It didn't find any errors, but I'm not trying the same thing with OGG.
So, any way to get TGB to play other formats than WAV?
I tried just doing it this way:
new AudioProfile(some_music_MU)
{
filename = "~/data/audio/Some music.mp3";
description = "Looping_AD";
preload = true;
};
but when i typed "alxPlay(aome_music_MU) ;" in the console everything crached. And by everything I mean EVERYTHING. I had to restart my computer by pushing the powerswitch.
Because I am a very stubborn person I tried the same thing again with a midi-file, and the same thing happened, exept that this time when booting up Windows again I got the "Checking for really really bad things on you harddrive, please wait."-screen.
It didn't find any errors, but I'm not trying the same thing with OGG.
So, any way to get TGB to play other formats than WAV?
About the author
Torque Owner Philip Mansfield
Default Studio Name
Oggs work perfectly well. MP3s aren't supported due to licensing.