예제 #1
0
 private void _midiController_RecEvent(object sender, EventArgs e)
 {
     if (_settings.RecButtonBehavior == BridgeSettings.RecButtonBehaviorEnum.OnlyMTK ||
         _settings.RecButtonBehavior == BridgeSettings.RecButtonBehaviorEnum.TwoTrackAndMTK)
     {
         if (!_mixer.IsMultitrackRecordingRun)
         {
             _client.Send(_mixer.GetStartMTKRecordMessage());
             _mixer.IsMultitrackRecordingRun = true;
         }
         else
         {
             _client.Send(_mixer.GetStopMTKRecordMessage());
             _mixer.IsMultitrackRecordingRun = false;
         }
     }
     if (_settings.RecButtonBehavior == BridgeSettings.RecButtonBehaviorEnum.OnlyTwoTrack ||
         _settings.RecButtonBehavior == BridgeSettings.RecButtonBehaviorEnum.TwoTrackAndMTK)
     {
         if (!_mixer.IsTwoTrackRecordingRun)
         {
             _client.Send(_mixer.GetStartRecordMessage());
             _mixer.IsTwoTrackRecordingRun = true;
         }
         else
         {
             _client.Send(_mixer.GetStopRecordMessage());
             _mixer.IsTwoTrackRecordingRun = false;
         }
     }
 }