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 drivershere.");
}
Canvas.setCursor("DefaultCursor");
///////////---> HERE
}
correct me if wrong
but my problem is what command should I use and do i need a datablock , etc
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
}
Canvas.setCursor("DefaultCursor");
///////////---> HERE
}
correct me if wrong
but my problem is what command should I use and do i need a datablock , etc
About the author
#2
is it possible to add a filter or a reverb on a sound channel ?
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 ?
Torque Owner Martin Schultz
http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=9560