Esempio n. 1
0
        private void OnClickChanged(bool shrinked)
        {
            var e = new ClickEventArgs {
                Shrinked = shrinked
            };

            ClickChanged?.Invoke(this, e);

            ErrorLevelDetected = e.ErrorLevelDetected;
        }
Esempio n. 2
0
        public void OnClickChanged(object source, ClickEventArgs e)
        {
            var click = source as AudioClick;

            if (click is null)
            {
                return;
            }

            if (e.Shrinked)
            {
                SetOutputSample(
                    click.Position - 1,
                    GetInputSample(click.Position - 1));
                SetOutputSample(
                    click.Position + click.Length,
                    GetInputSample(click.Position + click.Length));
            }

            e.ErrorLevelDetected = ClickRepairer.Repair(
                this,
                click.Position,
                click.Length);
        }