- All Implemented Interfaces:
Serializable
,Comparable<CsvDeltaMode>
,Constable
The
CsvDeltaMode
defines for which values of a SoundSample
only the delta between the current SoundSample
being written and the
previous SoundSample
being written are written to the next row of the
CSV file.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionDelta for all applicable values: Write only the changes for all values between the previousSoundSample
and the currentSoundSample
to the next CSV row.Always write the fullSoundSample
's value to the next CSV row.Delta only for the channels' sample data: Write only the changes regarding the previousSoundSample
's sample data and the currentSoundSample
's sample data to the next CSV row.Delta only for the sampling rate: Write only the changes regarding the previousSoundSample
's sample rate and the currentSoundSample
's rate to the next CSV row. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Determines whether to write only the sampling data's deltas per row or explicitly the sampling data to each row, even when it does not change.boolean
Determines whether to write only the sampling rate's deltas per row or explicitly the sampling rate to each row, even when it does not change.static CsvDeltaMode
Returns the enum constant of this class with the specified name.static CsvDeltaMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALL
Delta for all applicable values: Write only the changes for all values between the previousSoundSample
and the currentSoundSample
to the next CSV row. -
SAMPLING_RATE
Delta only for the sampling rate: Write only the changes regarding the previousSoundSample
's sample rate and the currentSoundSample
's rate to the next CSV row. Recommended when you are working with a fixed sampling rate. -
SAMPLE_DATA
Delta only for the channels' sample data: Write only the changes regarding the previousSoundSample
's sample data and the currentSoundSample
's sample data to the next CSV row. -
NONE
Always write the fullSoundSample
's value to the next CSV row. May produce some redundancy overhead.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
isSamplingRateDelta
public boolean isSamplingRateDelta()Determines whether to write only the sampling rate's deltas per row or explicitly the sampling rate to each row, even when it does not change.- Returns:
- True when only the deltas of the sampling rate are to be written, else false.
-
isSampleDataDelta
public boolean isSampleDataDelta()Determines whether to write only the sampling data's deltas per row or explicitly the sampling data to each row, even when it does not change.- Returns:
- True when only the deltas of the sampling data are to be written, else false.
-