示例#1
0
        protected virtual void OnLoadedInTaskRun()
        {
            IsCancelling = false;
            HideUpperSideMessageAreaAndReplayPracticeNextButtons();
            refToAppModel.EnableUpdatingCameraViewImageButHideWindow();
            Application.Current.Dispatcher.Invoke(new Action(() =>
            {
                refToAppModel.RefToHostApp.Device.Settings.CursorSpeedAndPrecisionMode.Value = PropertyTypes.CursorSpeedAndPrecisionModes.Beginner;
            }));

            CreateAudioPlayerInstances();
            if (false)
            {
                // TODO: add bgm
                // NOTE: must be called in Task.Run() in OnLoaded
                if (false)
                {
                    BgmAudio.StartAsync(refToAppModel.CurrentResources.SoundFilesFolderPath + @"\bgm.ogg");
                }
            }
        }
示例#2
0
 void StopAllSounds()
 {
     BgmAudio.Stop();
     NarrationAudio.Stop();
     SeAudio.Stop();
 }