org.refcodes.mixin.IndexAccessor
, SamplingRateAccessor
, org.refcodes.mixin.TimeStampAccessor
MonoSample
, MonoSampleBuilder
, SampleBuilder<S,B>
, SoundSampleBuilder
MonoSampleBuilderImpl
, MonoSampleImpl
, SoundSampleBuilderImpl
, SoundSampleImpl
public interface SoundSample extends SamplingRateAccessor, org.refcodes.mixin.IndexAccessor, org.refcodes.mixin.TimeStampAccessor
SoundSample
represents a sample assigned to an according time
positioning. A sample is a value or set of values at a point in time. In case
of mono audio, a sample represents a single value, in case of stereo audio, a
sample represents a set of values, one value represents one channel (e.g. two
channels when we have a left and a right speaker).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 |
---|---|---|
default int |
getChannelCount() |
Determines the number of channels this sample is ought for.
|
double[] |
getSampleData() |
Returns the sample's data for the according time positioning.
|
double |
getTimeStamp() |
Returns the position in time of this sound sample in ms.
|
getSamplingRate
double[] getSampleData()
default int getChannelCount()
double getTimeStamp()
getTimeStamp
in interface org.refcodes.mixin.TimeStampAccessor
Copyright © 2021. All rights reserved.