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
How to Mute Sound While Note Narration is Playing?
Rapture Offline
Posting Freak

Posts: 1,078
Threads: 79
Joined: May 2011
Reputation: 30
#6
RE: How to Mute Sound While Note Narration is Playing?

Your using,
void PlayMusic(string& asMusicFile, bool abLoop, float afVolume, float afFadeTime, int alPrio, bool abResume);

asMusicFile - the music to play + extension .ogg
abLoop - determines whether a music track should loop
afVolume - volume of the music
afFadeTime - time in seconds until music reaches full volume
alPrio - priority of the music. Note that only the music with the highest priority can be heard! 0 - lowest, 1 - higher, etc.
abResume - if true, playback will be continued from where the track stopped after the call to StopMusic(); if false, the track will be restarted.
right?

I'm looking at "01_old_archives.map" and it's .hps file, and all I see for the Note CallbackFunc in the LevelEditor is the "PlayMusic". If you copy it out and change the "asMusicFile" to your "YourText.ogg" file, I'm assuming it should work fine.

Tried it out in-game also, it played music and resumed back to the previous one when the Note ended.
09-14-2013, 05:04 PM
Find


Messages In This Thread
RE: How to Mute Sound While Note Narration is Playing? - by Rapture - 09-14-2013, 05:04 PM



Users browsing this thread: 2 Guest(s)