summaryrefslogtreecommitdiff
path: root/pjmedia/include
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2006-12-26 21:18:11 +0000
committerBenny Prijono <bennylp@teluu.com>2006-12-26 21:18:11 +0000
commit47d417ed5eb941ec7bdde985a05340ae184d6fc7 (patch)
tree8ba9b4af43f4745f0f73ff36b4624689c0e08499 /pjmedia/include
parentf9017cbd238e567ae0bea2c60611bd8fd8814e3e (diff)
Ticket #54: added ability to modify some codec parameters on the fly
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@867 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjmedia/include')
-rw-r--r--pjmedia/include/pjmedia/codec.h18
-rw-r--r--pjmedia/include/pjmedia/silencedet.h5
2 files changed, 17 insertions, 6 deletions
diff --git a/pjmedia/include/pjmedia/codec.h b/pjmedia/include/pjmedia/codec.h
index dd611f2f..3838e8a7 100644
--- a/pjmedia/include/pjmedia/codec.h
+++ b/pjmedia/include/pjmedia/codec.h
@@ -314,7 +314,7 @@ typedef struct pjmedia_codec_op
* @return PJ_SUCCESS on success.
*/
pj_status_t (*open)(pjmedia_codec *codec,
- pjmedia_codec_param *param );
+ const pjmedia_codec_param *param );
/**
* Close and shutdown codec, releasing all resources allocated by
@@ -326,6 +326,22 @@ typedef struct pjmedia_codec_op
*/
pj_status_t (*close)(pjmedia_codec *codec);
+ /**
+ * Modify the codec parameter after the codec is open.
+ * Note that not all codec parameters can be modified during run-time.
+ * When the parameter cannot be changed, this function will return
+ * non-PJ_SUCCESS, and the original parameters will not be changed.
+ *
+ * Application can expect changing trivial codec settings such as
+ * changing VAD setting to succeed.
+ *
+ * @param codec The codec instance.
+ * @param param The new codec parameter.
+ *
+ * @return PJ_SUCCESS on success.
+ */
+ pj_status_t (*modify)(pjmedia_codec *codec,
+ const pjmedia_codec_param *param );
/**
* Instruct the codec to inspect the specified payload/packet and
diff --git a/pjmedia/include/pjmedia/silencedet.h b/pjmedia/include/pjmedia/silencedet.h
index c4cfbaa8..0c0afd66 100644
--- a/pjmedia/include/pjmedia/silencedet.h
+++ b/pjmedia/include/pjmedia/silencedet.h
@@ -185,11 +185,6 @@ PJ_DECL(pj_bool_t) pjmedia_silence_det_apply( pjmedia_silence_det *sd,
pj_uint32_t level);
-/**
- * Declaration linear2ulaw
- */
-unsigned char linear2ulaw(int pcm_val);
-
PJ_END_DECL