- Timestamp:
- Dec 3, 2013 10:45:36 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/pjsua2/pjsip/include/pjsua2/endpoint.hpp
r4668 r4669 1007 1007 AudDevManager &audDevManager(); 1008 1008 1009 /************************************************************************* 1010 * Codec management operations 1011 */ 1012 1013 /** 1014 * Enum all supported codecs in the system. 1015 * 1016 * @return Array of codec info. 1017 */ 1018 const CodecInfoVector &codecEnum() throw(Error); 1019 1020 /** 1021 * Change codec priority. 1022 * 1023 * @param codec_id Codec ID, which is a string that uniquely identify 1024 * the codec (such as "speex/8000"). 1025 * @param priority Codec priority, 0-255, where zero means to disable 1026 * the codec. 1027 * 1028 */ 1029 void codecSetPriority(const string &codec_id, 1030 pj_uint8_t priority) throw(Error); 1031 1032 /** 1033 * Get codec parameters. 1034 * 1035 * @param codec_id Codec ID. 1036 * 1037 * @return Codec parameters. If codec is not found, Error 1038 * will be thrown. 1039 * 1040 */ 1041 CodecParam codecGetParam(const string &codec_id) const throw(Error); 1042 1043 /** 1044 * Set codec parameters. 1045 * 1046 * @param codec_id Codec ID. 1047 * @param param Codec parameter to set. Set to NULL to reset 1048 * codec parameter to library default settings. 1049 * 1050 */ 1051 void codecSetParam(const string &codec_id, 1052 const CodecParam param) throw(Error); 1053 1054 1009 1055 public: 1010 1056 /* … … 1075 1121 AudioMediaVector mediaList; 1076 1122 AudDevManager audioDevMgr; 1123 CodecInfoVector codecInfoList; 1077 1124 1078 1125 /* Endpoint static callbacks */ … … 1197 1244 unsigned flags); 1198 1245 1246 private: 1247 void clearCodecInfoList(); 1248 1199 1249 }; 1200 1250
Note: See TracChangeset
for help on using the changeset viewer.