Example #1
0
 /**
  * Setup the seeker with the data it needs to to an educated guess of seeking positions.
  *
  * @param audioDataLength the length of the audio data (total bytes - header bytes).
  * @param totalSamples the total number of samples of audio data.
  */
 public void setup(long audioDataLength, long totalSamples) {
   Assertions.checkArgument(audioDataLength > 0 && totalSamples > 0);
   this.audioDataLength = audioDataLength;
   this.totalSamples = totalSamples;
 }