Interface SoundSample

    • Method Detail

      • getSampleData

        double[] getSampleData()
        Returns the sample's data for the according time positioning. A sample is a value or set of values at a point in time. In case of mono audio, a sample represents a single value, in case of stereo audio, a sample represents a set of values, one value represents one channel (e.g. two channels when we have a left and a right speaker).
        Returns:
        The sample's data for the according time positioning.
      • getChannelCount

        default int getChannelCount()
        Determines the number of channels this sample is ought for.
        Returns:
        The number of channels this sample feeds.
      • getTimeStamp

        double getTimeStamp()
        Returns the position in time of this sound sample in ms.
        Specified by:
        getTimeStamp in interface org.refcodes.mixin.TimeStampAccessor
        Returns:
        The sound sample's time positioning.