Package moe.kyokobot.koe.codec
Class OpusCodecInfo
java.lang.Object
moe.kyokobot.koe.codec.CodecInfo
moe.kyokobot.koe.codec.OpusCodecInfo
Opus audio codec information.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final bytestatic final intstatic final OpusCodecInfostatic final byte[]Fields inherited from class moe.kyokobot.koe.codec.CodecInfo
defaultPayloadType, defaultPriority, defaultRtxPayloadType, name, type -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisInstanceOf(@Nullable CodecInstance instance) Returns whether the given codec instance is Opus.Methods inherited from class moe.kyokobot.koe.codec.CodecInfo
equals, getDefaultPayloadType, getDefaultPriority, getDefaultRtxPayloadType, getName, getType, hashCode, instantiate, instantiate, toJson
-
Field Details
-
INSTANCE
-
DEFAULT_PAYLOAD_TYPE
public static final byte DEFAULT_PAYLOAD_TYPE- See Also:
-
FRAME_DURATION
public static final int FRAME_DURATION- See Also:
-
SILENCE_FRAME
public static final byte[] SILENCE_FRAME
-
-
Method Details
-
isInstanceOf
Returns whether the given codec instance is Opus.- Parameters:
instance- the codec instance to check, may be null- Returns:
- true if instance is non-null and its codec is Opus
-