Game Development Community

Menu and in-game music , how to

by ... · in Torque Game Engine · 04/24/2006 (1:30 pm) · 2 replies

Hi

I wonder how to add music in the main menu

I guess i need to place the command here ?

function loadMainMenu()
{
// Startup the client with the Main menu...
Canvas.setContent( MainMenuGui );


// Make sure the audio initialized.
if($Audio::initFailed) {
MessageBoxOK("Audio Initialization Failed",
"The OpenAL audio system failed to initialize. " @
"You can get the most recent OpenAL drivers here.");
}

Canvas.setCursor("DefaultCursor");

///////////---> HERE
}

correct me if wrong

but my problem is what command should I use and do i need a datablock , etc

#2
05/18/2006 (10:19 am)
I already found a perfect working seloution . my only problem was that my .ogg file was placed in the wrong diretory .

is it possible to add a filter or a reverb on a sound channel ?