Package soundPlayback

Class PlaybackParameters

java.lang.Object
soundPlayback.PlaybackParameters
All Implemented Interfaces:
Serializable, Cloneable, ManagedParameters

public class PlaybackParameters extends Object implements Cloneable, Serializable, ManagedParameters
Parameters controlling sound playback
Author:
Doug Gillespie
See Also:
  • Field Details Link icon

    • serialVersionUID Link icon

      public static final long serialVersionUID
      See Also:
    • dataSource Link icon

      public int dataSource
      source or raw audio data.
    • channelBitmap Link icon

      public int channelBitmap
      channels to play back
    • deviceNumber Link icon

      public int deviceNumber
      number of sound card line - only used when playing back wav files, etc. Otherwise, sound playback will be through the device that is acquiring data.
    • deviceType Link icon

      public int deviceType
      Device type only used with file playback, since for all real time plyback, playback must be through the device aquiring data
    • defaultSampleRate Link icon

      public boolean defaultSampleRate
    • playbackGain Link icon

      public int playbackGain
  • Constructor Details Link icon

    • PlaybackParameters Link icon

      public PlaybackParameters()
  • Method Details Link icon

    • clone Link icon

      public PlaybackParameters clone()
    • getLogPlaybackSpeed Link icon

      public double getLogPlaybackSpeed()
      The log2 of the playback speed. Speed being how much the original data are sped up by.
      Returns:
      log2 of playback speed.
    • setLogPlaybackSpeed Link icon

      public void setLogPlaybackSpeed(double logSpeed)
      Set the log2 of the playback speed (how many times real time).
      Parameters:
      logSpeed -
    • setPlaybackSpeed Link icon

      public void setPlaybackSpeed(double playbackSpeed)
      Set the playback speed (how many time real time)
      Parameters:
      playbackSpeed -
    • getPlaybackSpeed Link icon

      public double getPlaybackSpeed()
      Get the playback speed (how many times real time)
      Returns:
      playback speed
    • getPlaybackRate Link icon

      public float getPlaybackRate()
      Get the actual playback rate in samples per second.
      Returns:
      actual playback rate.
    • setPlaybackRate Link icon

      public void setPlaybackRate(float playbackRate)
    • getHpFilter Link icon

      public double getHpFilter()
      Returns:
      the hpFilter
    • setHpFilter Link icon

      public void setHpFilter(double hpFilter)
      Parameters:
      hpFilter - the hpFilter to set
    • getSidebarShow Link icon

      public int getSidebarShow()
      Returns:
      the sidebarShow
    • setSidebarShow Link icon

      public void setSidebarShow(int sidebarShow)
      Parameters:
      sidebarShow - the sidebarShow to set
    • isSideBarShow Link icon

      public boolean isSideBarShow(int sideBarType)
    • getParameterSet Link icon

      public PamParameterSet getParameterSet()
      Description copied from interface: ManagedParameters
      Get a set of data that describes all of the parameters in a class
      Specified by:
      getParameterSet in interface ManagedParameters
      Returns:
      description of the parameters in a class.