Game Development Community

Playing MP3

by Bryce Bangerter · in Torque Game Builder · 06/20/2006 (6:32 pm) · 3 replies

Is there a way to play mp3 files in Torque script without the use of a mod?

I tried

new AudioDescription (LoopingDescription)
	{
		volume = 1.0;
		isLooping = true;
		is3D = false;
		type = $GuiAudioType;
	};

	new AudioProfile (BackgroundMusic)
	{
		filename = "Octarium/data/audio/background.mp3";
		description = "LoopingDescription";
		preload = true;
	};

	alxPlay (BackgroundMusic);

but nothing comes out. If I use the same with a .wav file instead of a .mp3 file I get sound.

#1
06/20/2006 (6:38 pm)
Use .ogg files.

MP3 playback requires a license and it's not a cheap one.
#2
10/06/2006 (3:01 am)
JetAudio Basic (downloaded from www.download.com) can convert MP3 files to OGG. The result is smaller than the original MP3. However if it is used to convert MIDI file, the result is much bigger than the original MID
#3
10/06/2006 (5:25 am)
Also, CDex is a great free audio conversion tool.