示例#1
0
        public SharpWindow()
        {
            bool isOk = MXA2SE.startup();

            if (isOk)
            {
                soundEngine = MXA2SE.create_sound_engine();
            }
        }
示例#2
0
        public MusicEditorWindow()
        {
            InitializeComponent();
            Window wnd = System.Windows.Application.Current.MainWindow;

            this.Owner = wnd;
            MXA2SE.startup();
            soundEngine = MXA2SE.create_sound_engine();
        }
示例#3
0
        public TabControl()
        {
            bool isOK = MXA2SE.startup();

            if (!isOK)
            {
                System.Windows.MessageBox.Show("There was a problem starting up the XAudio2 Sound Engine. Tab Controls will not play audio.");
            }

            else
            {
                soundEngine = MXA2SE.create_sound_engine();
            }
        }
示例#4
0
        public CharacterSpeech(Characters chara, Constants.CharacterReactions react, string message)
        {
            _Character      = chara;
            _Reaction       = react;
            _MessageToSpeak = message;

            SentenceToDisplay    = "";
            _TimeUntilNextLetter = 25;
            Finished             = false;
            _VoicePaused         = false;
            FaceToDisplay        = "/Underlauncher;component/Assets/Images/Characters/" + _Character.ToString() + "/" + _Reaction.ToString() + "/" + "1.png";
            _CurrentAnimImage    = 1;

            bool seOK = MXA2SE.startup();

            soundEngine = MXA2SE.create_sound_engine();

            AnalyzeSpeech();
        }