Class MonoSampleImpl

java.lang.Object
org.refcodes.audio.SoundSampleImpl
org.refcodes.audio.MonoSampleImpl
All Implemented Interfaces:
MonoSample, SamplingRateAccessor, SoundSample, org.refcodes.mixin.IndexAccessor, org.refcodes.mixin.TimeStampAccessor

public class MonoSampleImpl extends SoundSampleImpl implements MonoSample
A MonoSampleImpl represents a single amplitude (one for the mono channel) assigned to an according time positioning.
  • Constructor Details

    • MonoSampleImpl

      public MonoSampleImpl(MonoSample aSample)
      Constructs a MonoSample instance with the according sound sample's settings
      Parameters:
      aSample - The mono sample (a single value representing the mono channel) for the related time positioning.
    • MonoSampleImpl

      public MonoSampleImpl(double aSample)
      Constructs a MonoSample instance with the according time and sample settings.
      Parameters:
      aSample - The mono sample (a single value representing the mono channel) for the related time positioning.
    • MonoSampleImpl

      public MonoSampleImpl(double aTimeMillis, double aSample)
      Constructs a MonoSample instance with the according time and sample settings.
      Parameters:
      aTimeMillis - The time positioning of this sound sample.
      aSample - The mono sample (a single value representing the mono channel) for the related time positioning.
    • MonoSampleImpl

      public MonoSampleImpl(double aTimeMillis, double aSample, int aSamplingRate)
      Constructs a MonoSample instance with the according time and sample settings.
      Parameters:
      aTimeMillis - The time positioning of this sound sample.
      aSample - The mono sample (a single value representing the mono channel) for the related time positioning.
      aSamplingRate - The sampling rate for the given sample.
    • MonoSampleImpl

      public MonoSampleImpl(double aSample, int aSamplingRate)
      Constructs a MonoSample instance with the according time and sample settings.
      Parameters:
      aSample - The mono sample (a single value representing the mono channel) for the related time positioning.
      aSamplingRate - The sampling rate for the given sample.
    • MonoSampleImpl

      public MonoSampleImpl(long aIndex, double aSample)
      Constructs a MonoSample instance with the according time and sample settings.
      Parameters:
      aIndex - The index of the sample according to its position in the sample sequence (e.g. sound file).
      aSample - The mono sample (a single value representing the mono channel) for the related time positioning.
    • MonoSampleImpl

      public MonoSampleImpl(long aIndex, double aSample, int aSamplingRate)
      Constructs a MonoSample instance with the according time and sample settings.
      Parameters:
      aIndex - The index of the sample according to its position in the sample sequence (e.g. sound file).
      aSample - The mono sample (a single value representing the mono channel) for the related time positioning.
      aSamplingRate - The sampling rate for the given sample.
    • MonoSampleImpl

      public MonoSampleImpl(long aIndex, double aTimeMillis, double aSample)
      Constructs a MonoSample instance with the according time and sample settings.
      Parameters:
      aIndex - The index of the sample according to its position in the sample sequence (e.g. sound file).
      aTimeMillis - The time positioning of this sound sample.
      aSample - The mono sample (a single value representing the mono channel) for the related time positioning.
    • MonoSampleImpl

      public MonoSampleImpl(long aIndex, double aTimeMillis, double aSample, int aSamplingRate)
      Constructs a MonoSample instance with the according time and sample settings.
      Parameters:
      aIndex - The index of the sample according to its position in the sample sequence (e.g. sound file).
      aTimeMillis - The time positioning of this sound sample.
      aSample - The mono sample (a single value representing the mono channel) for the related time positioning.
      aSamplingRate - The sampling rate for the given sample.
  • Method Details