Playing music in a mission
by Pascal Trahan · in Torque Game Engine · 12/03/2003 (8:45 am) · 3 replies
In the current HEAD, is there support for playing music in a mission? In the mission file, there is this entry:
new SimGroup(MissionGroup) {
CTF_scoreLimit = "5";
--->> cdTrack = "2";
--->> musicTrack = "lush";
What is this and how can we use it?
new SimGroup(MissionGroup) {
CTF_scoreLimit = "5";
--->> cdTrack = "2";
--->> musicTrack = "lush";
What is this and how can we use it?
About the author
Associate James Urquhart
The ogg vorbis streaming code is in the current HEAD.
I do not believe torque supports cd music though...
Anyway, make sure you have an audiodescription :
new AudioDescription(AudioMusic) { volume = 1.0; isLooping = false; isStreaming = true; is3D = false; type = $DefaultAudioType; };A profile for the music :
new AudioProfile (myMusic) { filename = "myOggFile.ogg"; description="AudioMusic"; preload=true; }And finally, whenever you want to play / stop :