Interface SampleReader<S extends SoundSample>

Type Parameters:
S - The type of the sample to be used.
All Superinterfaces:
AutoCloseable, org.refcodes.mixin.IndexAccessor, org.refcodes.io.RowReader<S>, SamplingRateAccessor
All Known Subinterfaces:
MonoSampleReader, SoundSampleReader
All Known Implementing Classes:
AbstractCsvSampleReader, CsvMonoSampleReader, CsvSoundSampleReader

public interface SampleReader<S extends SoundSample> extends AutoCloseable, org.refcodes.io.RowReader<S>, SamplingRateAccessor, org.refcodes.mixin.IndexAccessor
The SampleReader reads sound samples from a stream or a file.
  • Method Details

    • nextSample

      default S nextSample() throws IOException
      Reads the next SoundSample, equivalent to RowReader.nextRow() with a semantically stronger method name..
      Returns:
      The accordingly read SoundSample.
      Throws:
      IOException - thrown in case there was an I/O related problem.