Ejemplo n.º 1
0
        void playvoice(Hashtable param)
        {
            ISoundPlayer pl = ISoundPlayer.Instance;

            if (pl != null)
            {
                pl.StopVoice();
            }

            string audioPath = param["storage"] as string;
            bool   loop      = false;

            if (param.ContainsKey("loop"))
            {
                loop = ((param["loop"] as string) == "true") ? true : false;
            }
            ISoundPlayer player = ISoundPlayer.Instance;

            player.PlayVoice(audioPath, loop, 0f);

            VM.Instance.UpdateMessageVoiceData(audioPath, 0);
        }