Serializable
, Comparable<CsvDeltaMode>
public enum CsvDeltaMode extends Enum<CsvDeltaMode>
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.Enum Constant | Description |
---|---|
ALL |
Delta for all applicable values: Write only the changes for all values
between the previous
SoundSample and the current
SoundSample to the next CSV row. |
NONE |
Always write the full
SoundSample 's value to the next CSV row. |
SAMPLE_DATA |
Delta only for the channels' sample data: Write only the changes
regarding the previous
SoundSample 's sample data and the current
SoundSample 's sample data to the next CSV row. |
SAMPLING_RATE |
Delta only for the sampling rate: Write only the changes regarding the
previous
SoundSample 's sample rate and the current
SoundSample 's rate to the next CSV row. |
Modifier and Type | Method | Description |
---|---|---|
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.
|
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.
|
static CsvDeltaMode |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static CsvDeltaMode[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CsvDeltaMode ALL
SoundSample
and the current
SoundSample
to the next CSV row.public static final CsvDeltaMode SAMPLING_RATE
SoundSample
's sample rate and the current
SoundSample
's rate to the next CSV row. Recommended when you are
working with a fixed sampling rate.public static final CsvDeltaMode SAMPLE_DATA
SoundSample
's sample data and the current
SoundSample
's sample data to the next CSV row.public static final CsvDeltaMode NONE
SoundSample
's value to the next CSV row.
May produce some redundancy overhead.public static CsvDeltaMode[] values()
for (CsvDeltaMode c : CsvDeltaMode.values()) System.out.println(c);
public static CsvDeltaMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isSamplingRateDelta()
public boolean isSampleDataDelta()
Copyright © 2021. All rights reserved.