Package soundPlayback

Interface PlaybackDataServer


public interface PlaybackDataServer
Provide data for sound playback in a suitable format. example use is from the click detector which will regenerate raw audio data from clicks, filling in spaces between clicks with blanks.
Author:
Doug Gillespie
  • Method Details

    • orderPlaybackData

      void orderPlaybackData(PamObserver dataObserver, PlaybackProgressMonitor progressMonitor, float playbackRate, long startMillis, long endMillis)
      Request playback data.

      This will automatically get called in a separate worker thread so no need to rethread in the concrete subclass of this.

      Parameters:
      dataObserver - destination for new RawDataUnits
      progressMonitor - progress monitor - should be notified in AWT thread.
      startMillis - start time in millis
      endMillis - end time in millis.
    • cancelPlaybackData

      void cancelPlaybackData()
      Cancel data loading.
    • getDataSampleRate

      double getDataSampleRate()
      Get the true sample rate of the data
      Returns:
      true sample rate in the data to play back.