Package soundPlayback

Class PlaybackSystem

java.lang.Object
soundPlayback.PlaybackSystem
Direct Known Subclasses:
ASIOPlaybackSystem, FilePlayback, NIPlaybackSystem, SoundCardPlayback

public abstract class PlaybackSystem extends Object
Interface for soundplayback systems.
Author:
Doug Gillespie
  • Field Details

  • Constructor Details

    • PlaybackSystem

      public PlaybackSystem()
  • Method Details

    • prepareSystem

      public abstract boolean prepareSystem(PlaybackControl playbackControl, int nChannels, float sampleRate)
    • unPrepareSystem

      public abstract boolean unPrepareSystem()
    • getMaxChannels

      public abstract int getMaxChannels()
    • playData

      public abstract boolean playData(RawDataUnit[] data, double gain)
    • getDialogComponent

      public abstract PlaybackDialogComponent getDialogComponent()
      Get the swing component for the playback system.
      Returns:
      the swing component for the playback system.
    • getSettingsPane

      public abstract PlaybackSettingsPane getSettingsPane()
      Returns:
    • getName

      public abstract String getName()
      Returns:
      System name
    • mustSameIOSampleRate

      public boolean mustSameIOSampleRate()
      Must use the same sample rate for output as for input when running in real time.
      Returns:
      true if must use same sample rate for O as for I in real time.
    • addChangeObserver

      public void addChangeObserver(PlaybackChangeObserver playbackChangeObserver)
    • removeChangeObserver

      public void removeChangeObserver(PlaybackChangeObserver playbackChangeObserver)
    • notifyObservers

      public void notifyObservers()
    • getDeviceState

      public PlayDeviceState getDeviceState()
    • getDeviceName

      public String getDeviceName()
      Returns:
      the name of the actual playback device