コード例 #1
0
ファイル: App.xaml.cs プロジェクト: smarongiu/xamtuner
        protected override async void OnSleep()
        {
            IPitchDetectionService srv = AppContext.Container.Resolve <IPitchDetectionService>();

            if (srv.IsStarted)
            {
                await srv.Stop();
            }
        }
コード例 #2
0
 public XamTunerViewModel(IPitchDetectionService pitchDetectionService) : base()
 {
     _pitchDetectionService = pitchDetectionService;
     _pitchDetectionService.PitchDetected += OnPitchDetected;
 }