Example #1
0
    public void PlayMusic(String soundName, Int32 fadeIn = 0)
    {
        Int32 soundIndex = SoundMetaData.GetSoundIndex(soundName, SoundProfileType.MovieAudio);

        SoundLib.Log("PlayMuvieAudio movieName: " + soundName);
        if (soundIndex != -1)
        {
            base.PlayMusic(soundIndex, fadeIn, SoundProfileType.MovieAudio);
        }
    }
Example #2
0
    public static Int32 GetMovieSoundIndex(String movieName)
    {
        String soundName = String.Empty;

        if (String.Equals(movieName, "FMV000"))
        {
            soundName = "Sounds01/BGM_/music033";
        }
        else if (String.Equals(movieName, "FMV059"))
        {
            soundName = "Sounds02/Movie_/FMV059A";
        }
        else if (String.Equals(movieName, "FMV060"))
        {
            String currentLanguage = FF9StateSystem.Settings.CurrentLanguage;
            String str             = "FMV059C";
            if (currentLanguage == "Japanese")
            {
                str = "FMV059B";
            }
            soundName = "Sounds02/Movie_/" + str;
        }
        else if (String.Equals(movieName, "mbg102"))
        {
            soundName = "Sounds02/song_/song0504_0";
        }
        else if (String.Equals(movieName, "mbg103"))
        {
            soundName = "Sounds02/song_/song0505_0";
        }
        else if (String.Equals(movieName, "mbg105"))
        {
            soundName = "Sounds02/song_/song0503_0";
        }
        else if (String.Equals(movieName, "mbg106"))
        {
            soundName = "Sounds02/song_/song0507_0";
        }
        else if (String.Equals(movieName, "mbg107"))
        {
            soundName = "Sounds02/song_/song0506_0";
        }
        else if (String.Equals(movieName, "mbg108"))
        {
            soundName = "Sounds02/song_/song0501_0";
        }
        else if (String.Equals(movieName, "mbg110"))
        {
            soundName = "Sounds02/song_/song0502_0";
        }
        else if (String.Equals(movieName, "mbg111"))
        {
            soundName = "Sounds02/song_/song0509_0";
        }
        else if (String.Equals(movieName, "mbg112"))
        {
            soundName = "Sounds02/song_/song0510_0";
        }
        else if (String.Equals(movieName, "mbg113"))
        {
            soundName = "Sounds02/song_/song0508_0";
        }
        else if (String.Equals(movieName, "mbg115"))
        {
            soundName = "Sounds02/song_/song0511_0";
        }
        else if (String.Equals(movieName, "mbg116"))
        {
            soundName = "Sounds02/song_/song1040_0";
        }
        else if (String.Equals(movieName, "mbg117"))
        {
            soundName = "Sounds02/song_/song0512_0";
        }
        else if (String.Equals(movieName, "mbg118"))
        {
            soundName = "Sounds02/song_/song0513_0";
        }
        else
        {
            soundName = "Sounds02/Movie_/" + movieName;
        }
        return(SoundMetaData.GetSoundIndex(soundName, SoundProfileType.MovieAudio));
    }