Пример #1
0
        public static List <HitsoundLayer> ImportReloading(ImportReloadingArgs reloadingArgs)
        {
            switch (reloadingArgs.ImportType)
            {
            case ImportType.Stack:
                return(new List <HitsoundLayer>
                {
                    ImportStack(reloadingArgs.Path, reloadingArgs.X, reloadingArgs.Y)
                });

            case ImportType.Hitsounds:
                return(ImportHitsounds(reloadingArgs.Path, reloadingArgs.DiscriminateVolumes, reloadingArgs.DetectDuplicateSamples, reloadingArgs.RemoveDuplicates, false));

            case ImportType.Storyboard:
                return(ImportStoryboard(reloadingArgs.Path, reloadingArgs.DiscriminateVolumes, reloadingArgs.RemoveDuplicates));

            case ImportType.MIDI:
                return(ImportMidi(reloadingArgs.Path,
                                  lengthRoughness: reloadingArgs.LengthRoughness,
                                  velocityRoughness: reloadingArgs.VelocityRoughness));

            default:
                return(new List <HitsoundLayer>());
            }
        }
        public static List <HitsoundLayer> ImportReloading(ImportReloadingArgs reloadingArgs)
        {
            switch (reloadingArgs.ImportType)
            {
            case ImportType.Stack:
                return(new List <HitsoundLayer>()
                {
                    ImportStack(reloadingArgs.Path, reloadingArgs.X, reloadingArgs.Y)
                });

            case ImportType.Hitsounds:
                return(ImportHitsounds(reloadingArgs.Path));

            case ImportType.MIDI:
                return(ImportMidi(reloadingArgs.Path,
                                  lengthRoughness: reloadingArgs.LengthRoughness,
                                  velocityRoughness: reloadingArgs.VelocityRoughness));

            default:
                return(new List <HitsoundLayer>());
            }
        }