Package net.raphimc.audiomixer
Enum Class SourceDataLineAudioMixer.BufferOverrunStrategy
java.lang.Object
java.lang.Enum<SourceDataLineAudioMixer.BufferOverrunStrategy>
net.raphimc.audiomixer.SourceDataLineAudioMixer.BufferOverrunStrategy
- All Implemented Interfaces:
Serializable,Comparable<SourceDataLineAudioMixer.BufferOverrunStrategy>,Constable
- Enclosing class:
- SourceDataLineAudioMixer
public static enum SourceDataLineAudioMixer.BufferOverrunStrategy
extends Enum<SourceDataLineAudioMixer.BufferOverrunStrategy>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBlocks until the buffer has enough space.Don't mix if the buffer would overrun.Flushes the buffer if it would overrun. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DO_NOTHING
Don't mix if the buffer would overrun. Causes new sounds to be started at the next mixSlice() call. -
FLUSH
Flushes the buffer if it would overrun. Causes new sounds to be started immediately, but may cause audio pops. -
BLOCK
Blocks until the buffer has enough space.
-
-
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
-