diff options
author | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2011-10-27 13:43:43 -0400 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2011-10-27 13:43:43 -0400 |
commit | e6a0be8ee6a0675dc7c959a0c3cf9d3f7219b682 (patch) | |
tree | 28df22abb42b9f12d2875b64f80e2ae6ae466832 /src/opus_private.h | |
parent | 6ef378725f274ce60c7b0b42f8ff5f55df95d25d (diff) | |
download | opus-e6a0be8ee6a0675dc7c959a0c3cf9d3f7219b682.tar.gz |
Makes OPUS_SET_VOICE_RATIO private
Let's put it back in if/when we have a clearer view of voice/music detection
Diffstat (limited to 'src/opus_private.h')
-rw-r--r-- | src/opus_private.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/opus_private.h b/src/opus_private.h index 555f8b07..ea7acb74 100644 --- a/src/opus_private.h +++ b/src/opus_private.h @@ -36,6 +36,26 @@ #define MODE_HYBRID 1001 #define MODE_CELT_ONLY 1002 +#define OPUS_SET_VOICE_RATIO_REQUEST 11018 +#define OPUS_GET_VOICE_RATIO_REQUEST 11019 + +/** Configures the encoder's expected percentage of voice + * opposed to music or other signals. + * + * @note This interface is currently more aspiration than actuality. It's + * ultimately expected to bias an automatic signal classifier, but it currently + * just shifts the static bitrate to mode mapping around a little bit. + * + * @param[in] x <tt>int</tt>: Voice percentage in the range 0-100, inclusive. + * @hideinitializer */ +#define OPUS_SET_VOICE_RATIO(x) OPUS_SET_VOICE_RATIO_REQUEST, __opus_check_int(x) +/** Gets the encoder's configured voice ratio value, @see OPUS_SET_VOICE_RATIO + * + * @param[out] x <tt>int*</tt>: Voice percentage in the range 0-100, inclusive. + * @hideinitializer */ +#define OPUS_GET_VOICE_RATIO(x) OPUS_GET_VOICE_RATIO_REQUEST, __opus_check_int_ptr(x) + + #define OPUS_SET_FORCE_MODE_REQUEST 11002 #define OPUS_SET_FORCE_MODE(x) OPUS_SET_FORCE_MODE_REQUEST, __opus_check_int(x) |