Class WavListWorker

All Implemented Interfaces:
PamWorkWrapper<FileListData<WavFileType>>

public class WavListWorker extends FileListWorker<WavFileType>
Worker which extracts acoustic files from a folder.
Author:
Doug Gillespie
  • Constructor Details

  • Method Details

    • createFile

      public WavFileType createFile(File baseFile)
      Description copied from class: FileListWorker
      Creates the file. Can override to make enhanced file types, e.g. with the wav file audioinfo.
      Specified by:
      createFile in class FileListWorker<WavFileType>
      Returns:
    • eachFileTask

      public boolean eachFileTask(WavFileType aFile)
      Description copied from class: FileListWorker
      Called every time a file is discovered in the main search. Can check things like consistency of sample rate in each file as progress continues.
      Overrides:
      eachFileTask in class FileListWorker<WavFileType>
      Parameters:
      aFile -
      Returns:
      true if processing can continue
    • allFilesTask

      public boolean allFilesTask(FileListData<WavFileType> fileList)
      Description copied from class: FileListWorker
      Called once the main list of files has been made so that additional operations can be applied to every file, such as checking sample rates, etc.
      Overrides:
      allFilesTask in class FileListWorker<WavFileType>
      Parameters:
      fileList -
      Returns:
      true if all OK.
    • finaliseFileList

      public void finaliseFileList(PamWorker<FileListData<WavFileType>> pamWorker, FileListData<WavFileType> fileList)
      Description copied from class: FileListWorker
      Do any final jobs to the file list. This is needed in listing of xwav files since we have to go in and get the chunks. Might as well do the start times and audio formats for all files while we're at it to save time later. By doing it here in the progress bar, we can at least show progress sensibly.
      Overrides:
      finaliseFileList in class FileListWorker<WavFileType>
      Parameters:
      pamWorker -
      fileList -