diff options
author | Gustaf Ullberg <gustaf.ullberg@gmail.com> | 2018-12-20 15:35:41 +0100 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2019-04-10 17:26:57 -0400 |
commit | 4f4b11c2398e96134dc62ee794bfe33ecd6e9bd2 (patch) | |
tree | b10d512517d899b686f76d50ecc1ec00c70154cc /include | |
parent | afea46e9d795bd08ee7f82fb65a9ff4a7d842b66 (diff) | |
download | opus-4f4b11c2398e96134dc62ee794bfe33ecd6e9bd2.tar.gz |
API for checking whether the encoder is in DTX
Signed-off-by: Jean-Marc Valin <jmvalin@jmvalin.ca>
Diffstat (limited to 'include')
-rw-r--r-- | include/opus_defines.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/opus_defines.h b/include/opus_defines.h index fbf5d0eb..d141418b 100644 --- a/include/opus_defines.h +++ b/include/opus_defines.h @@ -168,6 +168,7 @@ extern "C" { /* Don't use 4045, it's already taken by OPUS_GET_GAIN_REQUEST */ #define OPUS_SET_PHASE_INVERSION_DISABLED_REQUEST 4046 #define OPUS_GET_PHASE_INVERSION_DISABLED_REQUEST 4047 +#define OPUS_GET_IN_DTX_REQUEST 4049 /** Defines for the presence of extended APIs. */ #define OPUS_HAVE_OPUS_PROJECTION_H @@ -715,6 +716,16 @@ extern "C" { * </dl> * @hideinitializer */ #define OPUS_GET_PHASE_INVERSION_DISABLED(x) OPUS_GET_PHASE_INVERSION_DISABLED_REQUEST, __opus_check_int_ptr(x) +/** Gets the DTX state of the encoder. + * Returns whether the last encoded frame was either a comfort noise update + * during DTX or not encoded because of DTX. + * @param[out] x <tt>opus_int32 *</tt>: Returns one of the following values: + * <dl> + * <dt>0</dt><dd>The encoder is not in DTX.</dd> + * <dt>1</dt><dd>The encoder is in DTX.</dd> + * </dl> + * @hideinitializer */ +#define OPUS_GET_IN_DTX(x) OPUS_GET_IN_DTX_REQUEST, __opus_check_int_ptr(x) /**@}*/ |