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

    • serialVersionUID

      public static final long serialVersionUID
      See Also:
    • dataSource

      public int dataSource
      source or raw audio data.
    • channelBitmap

      public int channelBitmap
      channels to play back
    • deviceNumber

      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

      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

      public boolean defaultSampleRate
    • playbackGain

      public int playbackGain
  • Constructor Details

    • PlaybackParameters

      public PlaybackParameters()
  • Method Details

    • clone

      public PlaybackParameters clone()
    • getLogPlaybackSpeed

      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

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

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

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

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

      public void setPlaybackRate(float playbackRate)
    • getHpFilter

      public double getHpFilter()
      Returns:
      the hpFilter
    • setHpFilter

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

      public int getSidebarShow()
      Returns:
      the sidebarShow
    • setSidebarShow

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

      public boolean isSideBarShow(int sideBarType)
    • getParameterSet

      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.