org.refcodes.mixin.IndexAccessor
, org.refcodes.mixin.IndexAccessor.IndexBuilder<MonoSample>
, org.refcodes.mixin.IndexAccessor.IndexMutator
, org.refcodes.mixin.IndexAccessor.IndexProperty
, MonoSample
, SampleBuilder<MonoSample,MonoSampleBuilder>
, SamplingRateAccessor
, SamplingRateAccessor.SamplingRateBuilder<MonoSample>
, SamplingRateAccessor.SamplingRateMutator
, SamplingRateAccessor.SamplingRateProperty
, SoundSample
, org.refcodes.mixin.TimeStampAccessor
, org.refcodes.mixin.TimeStampAccessor.TimeStampBuilder<MonoSample>
, org.refcodes.mixin.TimeStampAccessor.TimeStampMutator
, org.refcodes.mixin.TimeStampAccessor.TimeStampProperty
MonoSampleBuilderImpl
public interface MonoSampleBuilder extends MonoSample, SampleBuilder<MonoSample,MonoSampleBuilder>
MonoSampleBuilder
extends the SoundSample
with builder
functionality.org.refcodes.mixin.IndexAccessor.IndexBuilder<B extends org.refcodes.mixin.IndexAccessor.IndexBuilder<B>>, org.refcodes.mixin.IndexAccessor.IndexMutator, org.refcodes.mixin.IndexAccessor.IndexProperty
SamplingRateAccessor.SamplingRateBuilder<B extends SamplingRateAccessor.SamplingRateBuilder<B>>, SamplingRateAccessor.SamplingRateMutator, SamplingRateAccessor.SamplingRateProperty
org.refcodes.mixin.TimeStampAccessor.TimeStampBuilder<B extends org.refcodes.mixin.TimeStampAccessor.TimeStampBuilder<B>>, org.refcodes.mixin.TimeStampAccessor.TimeStampMutator, org.refcodes.mixin.TimeStampAccessor.TimeStampProperty
Modifier and Type | Method | Description |
---|---|---|
static MonoSampleBuilder |
build(double aSample) |
This is a convenience method for easily instantiating the according
builder.
|
void |
setMonoData(double aSampleData) |
Sets the sample's data for the according time positioning.
|
void |
setTimeStamp(double aTimeInMillis) |
Sets the position in time of this sound sample in ms.
|
default MonoSampleBuilder |
withDecreaseIndex() |
|
default MonoSampleBuilder |
withIncreaseIndex() |
|
default MonoSampleBuilder |
withIndex(long aIndex) |
|
default MonoSampleBuilder |
withMonoData(double aSampleData) |
Sets the sample's data for the sample property.
|
default MonoSampleBuilder |
withSamplingRate(int aSamplingRate) |
Sets the sampling rate for the sampling rate property.
|
default MonoSampleBuilder |
withTimeStamp(double aTimeInMillis) |
Sets the position in time of this sound sample in ms.
|
decreaseIndex, increaseIndex, resetIndex, setIndex
getMonoData
updateTimeStamp
getSamplingRate
setSamplingRate
letSamplingRate
getChannelCount, getSampleData, getTimeStamp
void setMonoData(double aSampleData)
aSampleData
- The sample's data for the according time positioning.default MonoSampleBuilder withMonoData(double aSampleData)
aSampleData
- The sample's data to be stored by the sample property.void setTimeStamp(double aTimeInMillis)
setTimeStamp
in interface org.refcodes.mixin.TimeStampAccessor.TimeStampMutator
aTimeInMillis
- The sound sample's time positioning in ms.default MonoSampleBuilder withTimeStamp(double aTimeInMillis)
withTimeStamp
in interface org.refcodes.mixin.TimeStampAccessor.TimeStampBuilder<MonoSample>
aTimeInMillis
- The sound sample's time positioning in ms.default MonoSampleBuilder withIndex(long aIndex)
withIndex
in interface org.refcodes.mixin.IndexAccessor.IndexBuilder<MonoSample>
default MonoSampleBuilder withIncreaseIndex()
withIncreaseIndex
in interface org.refcodes.mixin.IndexAccessor.IndexBuilder<MonoSample>
default MonoSampleBuilder withDecreaseIndex()
withDecreaseIndex
in interface org.refcodes.mixin.IndexAccessor.IndexBuilder<MonoSample>
default MonoSampleBuilder withSamplingRate(int aSamplingRate)
withSamplingRate
in interface SamplingRateAccessor.SamplingRateBuilder<MonoSample>
aSamplingRate
- The sampling rate to be stored by the sampling
rate property.static MonoSampleBuilder build(double aSample)
aSample
- The sample (set of values representing the channels, one
channel per value) for the related time positioning.MonoSampleBuilder
.Copyright © 2021. All rights reserved.