InputSoundFile.seek

Change the current read position to the given sample offset.

This function takes a sample offset to provide maximum precision. If you need to jump to a given time, use the other overload.

The sample offset takes the channels into account. Offsets can be calculated like this: sampleNumber * sampleRate * channelCount. If the given offset exceeds to total number of samples, this function jumps to the end of the sound file.

  1. void seek(long sampleOffset)
    class InputSoundFile
    void
    seek
  2. void seek(Duration timeOffset)

Meta