[asterisk-commits] dvossel: branch dvossel/improved_hd_audio_translation_paths r280911 - in /tea...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Aug 4 10:24:47 CDT 2010
Author: dvossel
Date: Wed Aug 4 10:24:43 2010
New Revision: 280911
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=280911
Log:
addresses revievboard comments
Modified:
team/dvossel/improved_hd_audio_translation_paths/include/asterisk/translate.h
team/dvossel/improved_hd_audio_translation_paths/main/translate.c
Modified: team/dvossel/improved_hd_audio_translation_paths/include/asterisk/translate.h
URL: http://svnview.digium.com/svn/asterisk/team/dvossel/improved_hd_audio_translation_paths/include/asterisk/translate.h?view=diff&rev=280911&r1=280910&r2=280911
==============================================================================
--- team/dvossel/improved_hd_audio_translation_paths/include/asterisk/translate.h (original)
+++ team/dvossel/improved_hd_audio_translation_paths/include/asterisk/translate.h Wed Aug 4 10:24:43 2010
@@ -256,9 +256,11 @@
/*!
* \brief Puts a string representation of the translation path into outbuf
- * \retval on success, pointer to beginning of outbuf. on failure returns "".
- */
-char *ast_translate_path_to_str(struct ast_trans_pvt *t, struct ast_str **str);
+ * \param translator structure containing the translation path
+ * \param ast_str output buffer
+ * \retval on success pointer to beginning of outbuf. on failure "".
+ */
+const char *ast_translate_path_to_str(struct ast_trans_pvt *t, struct ast_str **str);
#if defined(__cplusplus) || defined(c_plusplus)
}
Modified: team/dvossel/improved_hd_audio_translation_paths/main/translate.c
URL: http://svnview.digium.com/svn/asterisk/team/dvossel/improved_hd_audio_translation_paths/main/translate.c?view=diff&rev=280911&r1=280910&r2=280911
==============================================================================
--- team/dvossel/improved_hd_audio_translation_paths/main/translate.c (original)
+++ team/dvossel/improved_hd_audio_translation_paths/main/translate.c Wed Aug 4 10:24:43 2010
@@ -51,10 +51,10 @@
* \note These must stay in this order. They are ordered by most optimal selection first.
*/
enum path_samp_change {
- RATE_CHANGE_NONE = 0, /*! path uses the same sample rate consistently */
- RATE_CHANGE_UPSAMP = 1, /*! path will up the sample rate during a translation */
- RATE_CHANGE_DOWNSAMP = 2, /*! path will have to down the sample rate during a translation. */
- RATE_CHANGE_UPSAMP_DOWNSAMP = 3, /*! path will both up and down the sample rate during translation */
+ RATE_CHANGE_NONE = 0, /*!< path uses the same sample rate consistently */
+ RATE_CHANGE_UPSAMP = 1, /*!< path will up the sample rate during a translation */
+ RATE_CHANGE_DOWNSAMP = 2, /*!< path will have to down the sample rate during a translation. */
+ RATE_CHANGE_UPSAMP_DOWNSAMP = 3, /*!< path will both up and down the sample rate during translation */
};
struct translator_path {
@@ -564,7 +564,7 @@
}
}
-char *ast_translate_path_to_str(struct ast_trans_pvt *p, struct ast_str **str)
+const char *ast_translate_path_to_str(struct ast_trans_pvt *p, struct ast_str **str)
{
struct ast_trans_pvt *pn = p;
More information about the asterisk-commits
mailing list