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"); } } }
void StopAllSounds() { BgmAudio.Stop(); NarrationAudio.Stop(); SeAudio.Stop(); }