tge Sound issue
by fossilnite · in Torque Game Engine · 01/13/2012 (8:06 am) · 2 replies
hey all...
I created an audio profile ....It works... <b>BUT</b> it plays very softly.... IS there something wrong with my codes here?
I tried to change the volume to 100.0 but it is still soft... I know that the maximum it can go is 1.0... But when i play the ogg file or wav file(yes i tried both), it just didnt show much difference... both still gives the same soft music
Code Snippet:
<code>
$MusicAudioType = 4;//create a new channel for background epic music YEAA!!
new AudioDescription(MusicLooping)
{
volume = 1.0;
isLooping= true;
is3D = false;
type = $MusicAudioType;
};
new AudioProfile(menuMusic)
{
filename = "./MainMenuSound.ogg"; //can be either .wav or .ogg files
description = "MusicLooping";
preload = true;
};
</code>
Any advice ?
I created an audio profile ....It works... <b>BUT</b> it plays very softly.... IS there something wrong with my codes here?
I tried to change the volume to 100.0 but it is still soft... I know that the maximum it can go is 1.0... But when i play the ogg file or wav file(yes i tried both), it just didnt show much difference... both still gives the same soft music
Code Snippet:
<code>
$MusicAudioType = 4;//create a new channel for background epic music YEAA!!
new AudioDescription(MusicLooping)
{
volume = 1.0;
isLooping= true;
is3D = false;
type = $MusicAudioType;
};
new AudioProfile(menuMusic)
{
filename = "./MainMenuSound.ogg"; //can be either .wav or .ogg files
description = "MusicLooping";
preload = true;
};
</code>
Any advice ?
#2
What i did was this,
$musicHandle = alxPlay(menuMusic);
$musicHandle = alxPlay(menuMusic);
$musicHandle = alxPlay(menuMusic);
$musicHandle = alxPlay(menuMusic);
$musicHandle = alxPlay(menuMusic);
$musicHandle = alxPlay(menuMusic);
And the volume went up to its original,well not as loud but it is now much more louder and i can hear the music clearly... A stupid workaround against this problem.... just made the song play again and again..... Hope this might help someone in who is in a similar situation as i am.....Or is there another way?
01/14/2012 (9:39 am)
Thanks but i did that already.... It is still super soft...... I am confused.... Im doing this for my project.... But i tried something and it suprisingly worked....What i did was this,
$musicHandle = alxPlay(menuMusic);
$musicHandle = alxPlay(menuMusic);
$musicHandle = alxPlay(menuMusic);
$musicHandle = alxPlay(menuMusic);
$musicHandle = alxPlay(menuMusic);
$musicHandle = alxPlay(menuMusic);
And the volume went up to its original,well not as loud but it is now much more louder and i can hear the music clearly... A stupid workaround against this problem.... just made the song play again and again..... Hope this might help someone in who is in a similar situation as i am.....Or is there another way?
Associate Ben Steffen
$pref::Audio::masterVolume = 1.0;
$pref::Audio::channelVolume1 = 1.0;
...