Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Volume change during speech
lllDash Offline
Member

Posts: 108
Threads: 12
Joined: Apr 2012
Reputation: 3
#6
RE: Volume change during speech

This seems to work:


void notevolume(string &in item)
{
PlayMusic("04_amb.ogg", true, 0.7, 0.5, 2, true);
AddTimer("", 0.1f, "musiccomeback");
}
void musiccomeback(string &in asTimer)
{
PlayMusic("04_amb.ogg", true, 1, 0.5, 3, true);
}


The only problem is that the music's priority increases and that may mess up other musical cues in the level. Sure, I could add "StopMusic" but that would have a split second of no music even if fade is set to 0.
07-16-2012, 02:14 PM
Find


Messages In This Thread
Volume change during speech - by lllDash - 07-14-2012, 02:40 PM
RE: Volume change during speech - by Obliviator27 - 07-14-2012, 08:34 PM
RE: Volume change during speech - by lllDash - 07-16-2012, 10:11 AM
RE: Volume change during speech - by Acies - 07-16-2012, 10:32 AM
RE: Volume change during speech - by lllDash - 07-16-2012, 10:55 AM
RE: Volume change during speech - by lllDash - 07-16-2012, 02:14 PM



Users browsing this thread: 1 Guest(s)