private void DeleteBookRecording() {
      int recordingId = int.Parse(GetCommandParameter("id", true));

      Recording recording = Recording.Parse(recordingId);
      recording.Cancel();
      SetMessageBox("Se canceló la " + recording.FullNumber);
    }
Пример #2
0
        public MainSynthesizer()
        {
            SynthesizerRecorder = new SwapFilter <RecordFilter>(source => new RecordFilter(source), filter =>
            {
                filter.StopRecording();
                Recording.Cancel();
            });

            MidiPlayer = new MidiPlayer(Synthesizer.Format.SampleRate, Synthesizer);
            MidiPlayer.OscillatorConfigs.Add(new Oscillator()
            {
                Function = KSynthesizer.Sources.FunctionType.Sin, Volume = 0.3f
            });
            MidiPlayer.Finished += MidiPlayer_Finished;
        }