Class DetectSilence

    • Constructor Detail

      • DetectSilence

        public DetectSilence()
    • Method Detail

      • isAvailable

        public boolean isAvailable()
        Description copied from class: Task
        Indicate, whether this task is actually available in the current configuration. A task may not be available for non-iTunes libraries.
        Overrides:
        isAvailable in class Task
        Returns:
        true or false
        See Also:
        MediaLibrary.getLibraryDescriptor()
      • createEditor

        public TaskEditor<DetectSilence> createEditor()
        Description copied from class: Task
        By default instantiates a class with the name this.getClass().getName() + "Editor". If that does not work (because the editor class does not exist), an EmptyTaskEditor is created. To create a meaningful editor for a configurable task, you must override this method.
        Overrides:
        createEditor in class Task
        Returns:
        task editor for this task.
      • getSilenceThreshold

        public int getSilenceThreshold()
      • setSilenceThreshold

        public void setSilenceThreshold​(int silenceThreshold)
      • isReplaceExistingSilence

        public boolean isReplaceExistingSilence()
      • setReplaceExistingSilence

        public void setReplaceExistingSilence​(boolean replaceExistingSilence)
      • getName

        public String getName()
        Description copied from class: Task
        HTML or plaintext name of this task. Defaults to the task's classname.
        Overrides:
        getName in class Task
        Returns:
        name
      • getDescription

        public String getDescription()
        Description copied from class: Task
        HTML or plain text description of this task.
        Overrides:
        getDescription in class Task
        Returns:
        description
      • skip

        public boolean skip()
        Description copied from class: Task
        Indicates, whether this task can be skipped. Defaults to false.

        Since this task is not necessarily called by beaTunes, but by your own implementation of Task.runBefore(Task), you should call Task.setSkipped(boolean) with whatever value you are returning.

        Overrides:
        skip in class Task
        Returns:
        true or false
      • equals

        public boolean equals​(Object obj)
        Overrides:
        equals in class Task
      • createDeepCopy

        public DetectSilence createDeepCopy()
        Description copied from class: Task
        This method creates a copy of the Task and its subtasks. If you added any members to your subclass you MUST override this method and provide code that copies your members.
        Overrides:
        createDeepCopy in class Task
        Returns:
        copy