B
- The SoundSampleWriter
implementing this
SoundSampleWriter
.AutoCloseable
, org.refcodes.io.RowWriter<B>
, SampleWriter<SoundSample,B>
, SamplingRateAccessor
, SamplingRateAccessor.SamplingRateBuilder<B>
, SamplingRateAccessor.SamplingRateMutator
, SamplingRateAccessor.SamplingRateProperty
CsvSoundSampleWriter
, LineOutSoundSampleWriter
, WavSoundSampleWriter
public interface SoundSampleWriter<B extends SoundSampleWriter<B>> extends SampleWriter<SoundSample,B>
SoundSampleWriter
writes sound samples to a stream or a file.SamplingRateAccessor.SamplingRateBuilder<B extends SamplingRateAccessor.SamplingRateBuilder<B>>, SamplingRateAccessor.SamplingRateMutator, SamplingRateAccessor.SamplingRateProperty
Modifier and Type | Method | Description |
---|---|---|
void |
writeNext(double... aSample) |
Writes the next samples, one sample for each channel.
|
void |
writeNext(SoundSample aSample) |
Writes the next samples, one sample for each channel.
|
close
getSamplingRate
withSamplingRate
setSamplingRate
letSamplingRate
void writeNext(double... aSample) throws IOException
aSample
- The samples, one for each channel.IOException
- thrown in case writing the sample caused an I/O
related problem.void writeNext(SoundSample aSample) throws IOException
writeNext
in interface org.refcodes.io.RowWriter<B extends SoundSampleWriter<B>>
writeNext
in interface SampleWriter<SoundSample,B extends SoundSampleWriter<B>>
aSample
- The samples, one for each channel.IOException
- thrown in case writing the sample caused an I/O
related problem.Copyright © 2021. All rights reserved.