aboutsummaryrefslogtreecommitdiff
path: root/include/opus_defines.h
diff options
context:
space:
mode:
authorsergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-01 20:44:27 +0000
committersergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-01 20:44:27 +0000
commit660e25f9ad9e0b421241dcf675c6883fecb859cd (patch)
tree2c3093f0459f0bf8089ec409accadb3c218909b4 /include/opus_defines.h
parent6304b9628cb7244e3cc78f740aeb6659562f1857 (diff)
downloadsrc-660e25f9ad9e0b421241dcf675c6883fecb859cd.tar.gz
Update opus to 1.0.1
TBR=wez@chromium.org Review URL: https://codereview.chromium.org/11369030 git-svn-id: svn://svn.chromium.org/chrome/trunk/deps/third_party/opus@165487 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'include/opus_defines.h')
-rw-r--r--include/opus_defines.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/include/opus_defines.h b/include/opus_defines.h
index ec154ba..82a5f06 100644
--- a/include/opus_defines.h
+++ b/include/opus_defines.h
@@ -115,7 +115,8 @@ extern "C" {
#endif
/** These are the actual Encoder CTL ID numbers.
- * They should not be used directly by applications. */
+ * They should not be used directly by applications.
+ * In general, SETs should be even and GETs should be odd.*/
#define OPUS_SET_APPLICATION_REQUEST 4000
#define OPUS_GET_APPLICATION_REQUEST 4001
#define OPUS_SET_BITRATE_REQUEST 4002
@@ -142,6 +143,7 @@ extern "C" {
#define OPUS_GET_SIGNAL_REQUEST 4025
#define OPUS_GET_LOOKAHEAD_REQUEST 4027
/* #define OPUS_RESET_STATE 4028 */
+#define OPUS_GET_SAMPLE_RATE_REQUEST 4029
#define OPUS_GET_FINAL_RANGE_REQUEST 4031
#define OPUS_GET_PITCH_REQUEST 4033
#define OPUS_SET_GAIN_REQUEST 4034
@@ -426,6 +428,14 @@ extern "C" {
* @hideinitializer */
#define OPUS_GET_APPLICATION(x) OPUS_GET_APPLICATION_REQUEST, __opus_check_int_ptr(x)
+/** Gets the sampling rate the encoder or decoder was initialized with.
+ * This simply returns the <code>Fs</code> value passed to opus_encoder_init()
+ * or opus_decoder_init().
+ * @param[out] x <tt>opus_int32 *</tt>: Sampling rate of encoder or decoder.
+ * @hideinitializer
+ */
+#define OPUS_GET_SAMPLE_RATE(x) OPUS_GET_SAMPLE_RATE_REQUEST, __opus_check_int_ptr(x)
+
/** Gets the total samples of delay added by the entire codec.
* This can be queried by the encoder and then the provided number of samples can be
* skipped on from the start of the decoder's output to provide time aligned input