Changeset 6026 for pjproject/trunk/pjsip/include/pjsua2/media.hpp
- Timestamp:
- Jun 12, 2019 6:00:35 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/include/pjsua2/media.hpp
r5972 r6026 240 240 * Get information about the specified conference port. 241 241 */ 242 ConfPortInfo getPortInfo() const throw(Error);242 ConfPortInfo getPortInfo() const PJSUA2_THROW(Error); 243 243 244 244 /** … … 250 250 * Get information from specific port id. 251 251 */ 252 static ConfPortInfo getPortInfoFromId(int port_id) throw(Error);252 static ConfPortInfo getPortInfoFromId(int port_id) PJSUA2_THROW(Error); 253 253 254 254 /** … … 265 265 * @param sink The destination Media. 266 266 */ 267 void startTransmit(const AudioMedia &sink) const throw(Error);267 void startTransmit(const AudioMedia &sink) const PJSUA2_THROW(Error); 268 268 269 269 /** … … 294 294 void startTransmit2(const AudioMedia &sink, 295 295 const AudioMediaTransmitParam ¶m) const 296 throw(Error);296 PJSUA2_THROW(Error); 297 297 298 298 /** … … 302 302 * 303 303 */ 304 void stopTransmit(const AudioMedia &sink) const throw(Error);304 void stopTransmit(const AudioMedia &sink) const PJSUA2_THROW(Error); 305 305 306 306 /** … … 312 312 * the port. 313 313 */ 314 void adjustRxLevel(float level) throw(Error);314 void adjustRxLevel(float level) PJSUA2_THROW(Error); 315 315 316 316 /** … … 322 322 * the port. 323 323 */ 324 void adjustTxLevel(float level) throw(Error);324 void adjustTxLevel(float level) PJSUA2_THROW(Error); 325 325 326 326 /** … … 329 329 * @return Signal level in percent. 330 330 */ 331 unsigned getRxLevel() const throw(Error);331 unsigned getRxLevel() const PJSUA2_THROW(Error); 332 332 333 333 /** … … 336 336 * @return Signal level in percent. 337 337 */ 338 unsigned getTxLevel() const throw(Error);338 unsigned getTxLevel() const PJSUA2_THROW(Error); 339 339 340 340 /** … … 382 382 * 383 383 */ 384 void registerMediaPort(MediaPort port) throw(Error);384 void registerMediaPort(MediaPort port) PJSUA2_THROW(Error); 385 385 386 386 /** … … 393 393 * 394 394 */ 395 void registerMediaPort2(MediaPort port, pj_pool_t *pool) throw(Error); 395 void registerMediaPort2(MediaPort port, pj_pool_t *pool) 396 PJSUA2_THROW(Error); 396 397 397 398 /** … … 470 471 */ 471 472 void createPlayer(const string &file_name, 472 unsigned options=0) throw(Error);473 unsigned options=0) PJSUA2_THROW(Error); 473 474 474 475 /** … … 485 486 void createPlaylist(const StringVector &file_names, 486 487 const string &label="", 487 unsigned options=0) throw(Error);488 unsigned options=0) PJSUA2_THROW(Error); 488 489 489 490 /** … … 493 494 * @return the info. 494 495 */ 495 AudioMediaPlayerInfo getInfo() const throw(Error);496 AudioMediaPlayerInfo getInfo() const PJSUA2_THROW(Error); 496 497 497 498 /** … … 501 502 * @return Current playback position, in samples. 502 503 */ 503 pj_uint32_t getPos() const throw(Error);504 pj_uint32_t getPos() const PJSUA2_THROW(Error); 504 505 505 506 /** … … 509 510 * @param samples The desired playback position, in samples. 510 511 */ 511 void setPos(pj_uint32_t samples) throw(Error);512 void setPos(pj_uint32_t samples) PJSUA2_THROW(Error); 512 513 513 514 /** … … 597 598 unsigned enc_type=0, 598 599 long max_size=0, 599 unsigned options=0) throw(Error);600 unsigned options=0) PJSUA2_THROW(Error); 600 601 601 602 /** … … 697 698 */ 698 699 void createToneGenerator(unsigned clock_rate = 16000, 699 unsigned channel_count = 1) throw(Error);700 unsigned channel_count = 1) PJSUA2_THROW(Error); 700 701 701 702 /** … … 708 709 * Instruct the tone generator to stop current processing. 709 710 */ 710 void stop() throw(Error);711 void stop() PJSUA2_THROW(Error); 711 712 712 713 /** … … 714 715 * tone in the playback list. 715 716 */ 716 void rewind() throw(Error);717 void rewind() PJSUA2_THROW(Error); 717 718 718 719 /** … … 727 728 */ 728 729 void play(const ToneDescVector &tones, 729 bool loop=false) throw(Error);730 bool loop=false) PJSUA2_THROW(Error); 730 731 731 732 /** … … 741 742 */ 742 743 void playDigits(const ToneDigitVector &digits, 743 bool loop=false) throw(Error);744 bool loop=false) PJSUA2_THROW(Error); 744 745 745 746 /** … … 748 749 * @return The digitmap currently used by the tone generator 749 750 */ 750 ToneDigitMapVector getDigitMap() const throw(Error);751 ToneDigitMapVector getDigitMap() const PJSUA2_THROW(Error); 751 752 752 753 /** … … 755 756 * @param digit_map Digitmap to be used by the tone generator. 756 757 */ 757 void setDigitMap(const ToneDigitMapVector &digit_map) throw(Error);758 void setDigitMap(const ToneDigitMapVector &digit_map) PJSUA2_THROW(Error); 758 759 759 760 private: … … 852 853 * @return Device ID of the capture device. 853 854 */ 854 int getCaptureDev() const throw(Error);855 int getCaptureDev() const PJSUA2_THROW(Error); 855 856 856 857 /** … … 859 860 * @return Audio media for the capture device. 860 861 */ 861 AudioMedia &getCaptureDevMedia() throw(Error);862 AudioMedia &getCaptureDevMedia() PJSUA2_THROW(Error); 862 863 863 864 /** … … 867 868 * @return Device ID of the playback device. 868 869 */ 869 int getPlaybackDev() const throw(Error);870 int getPlaybackDev() const PJSUA2_THROW(Error); 870 871 871 872 /** … … 874 875 * @return Audio media for the speaker/playback device. 875 876 */ 876 AudioMedia &getPlaybackDevMedia() throw(Error);877 AudioMedia &getPlaybackDevMedia() PJSUA2_THROW(Error); 877 878 878 879 /** … … 884 885 * @param capture_dev Device ID of the capture device. 885 886 */ 886 void setCaptureDev(int capture_dev) const throw(Error);887 void setCaptureDev(int capture_dev) const PJSUA2_THROW(Error); 887 888 888 889 /** … … 894 895 * @param playback_dev Device ID of the playback device. 895 896 */ 896 void setPlaybackDev(int playback_dev) const throw(Error);897 void setPlaybackDev(int playback_dev) const PJSUA2_THROW(Error); 897 898 898 899 /** … … 905 906 * @return The list of audio device info. 906 907 */ 907 const AudioDevInfoVector &enumDev() throw(Error);908 const AudioDevInfoVector &enumDev() PJSUA2_THROW(Error); 908 909 909 910 /** … … 912 913 * @return The list of audio device info. 913 914 */ 914 AudioDevInfoVector2 enumDev2() const throw(Error);915 AudioDevInfoVector2 enumDev2() const PJSUA2_THROW(Error); 915 916 916 917 /** … … 920 921 * 921 922 */ 922 void setNullDev() throw(Error);923 void setNullDev() PJSUA2_THROW(Error); 923 924 924 925 /** … … 939 940 * 940 941 */ 941 void setSndDevMode(unsigned mode) const throw(Error);942 void setSndDevMode(unsigned mode) const PJSUA2_THROW(Error); 942 943 943 944 /** … … 965 966 * 966 967 */ 967 void setEcOptions(unsigned tail_msec, unsigned options) throw(Error);968 void setEcOptions(unsigned tail_msec, unsigned options) PJSUA2_THROW(Error); 968 969 969 970 /** … … 973 974 * If AEC is disabled, the value will be zero. 974 975 */ 975 unsigned getEcTail() const throw(Error);976 unsigned getEcTail() const PJSUA2_THROW(Error); 976 977 977 978 /** … … 992 993 * 993 994 */ 994 void refreshDevs() throw(Error);995 void refreshDevs() PJSUA2_THROW(Error); 995 996 996 997 /** … … 1011 1012 * by this method once it returns successfully. 1012 1013 */ 1013 AudioDevInfo getDevInfo(int id) const throw(Error);1014 AudioDevInfo getDevInfo(int id) const PJSUA2_THROW(Error); 1014 1015 1015 1016 /** … … 1023 1024 */ 1024 1025 int lookupDev(const string &drv_name, 1025 const string &dev_name) const throw(Error);1026 const string &dev_name) const PJSUA2_THROW(Error); 1026 1027 1027 1028 /** … … 1053 1054 * 1054 1055 */ 1055 void 1056 setExtFormat(const MediaFormatAudio &format, bool keep=true) throw(Error);1056 void setExtFormat(const MediaFormatAudio &format, bool keep=true) 1057 PJSUA2_THROW(Error); 1057 1058 1058 1059 /** … … 1071 1072 * 1072 1073 */ 1073 MediaFormatAudio getExtFormat() const throw(Error);1074 MediaFormatAudio getExtFormat() const PJSUA2_THROW(Error); 1074 1075 1075 1076 /** … … 1092 1093 */ 1093 1094 void 1094 setInputLatency(unsigned latency_msec, bool keep=true) throw(Error);1095 setInputLatency(unsigned latency_msec, bool keep=true) PJSUA2_THROW(Error); 1095 1096 1096 1097 /** … … 1109 1110 * 1110 1111 */ 1111 unsigned getInputLatency() const throw(Error);1112 unsigned getInputLatency() const PJSUA2_THROW(Error); 1112 1113 1113 1114 /** … … 1131 1132 */ 1132 1133 void 1133 setOutputLatency(unsigned latency_msec, bool keep=true) throw(Error);1134 setOutputLatency(unsigned latency_msec, bool keep=true) PJSUA2_THROW(Error); 1134 1135 1135 1136 /** … … 1148 1149 * 1149 1150 */ 1150 unsigned getOutputLatency() const throw(Error);1151 unsigned getOutputLatency() const PJSUA2_THROW(Error); 1151 1152 1152 1153 /** … … 1170 1171 * 1171 1172 */ 1172 void setInputVolume(unsigned volume, bool keep=true) throw(Error);1173 void setInputVolume(unsigned volume, bool keep=true) PJSUA2_THROW(Error); 1173 1174 1174 1175 /** … … 1187 1188 * 1188 1189 */ 1189 unsigned getInputVolume() const throw(Error);1190 unsigned getInputVolume() const PJSUA2_THROW(Error); 1190 1191 1191 1192 /** … … 1208 1209 * 1209 1210 */ 1210 void setOutputVolume(unsigned volume, bool keep=true) throw(Error);1211 void setOutputVolume(unsigned volume, bool keep=true) PJSUA2_THROW(Error); 1211 1212 1212 1213 /** … … 1225 1226 * 1226 1227 */ 1227 unsigned getOutputVolume() const throw(Error);1228 unsigned getOutputVolume() const PJSUA2_THROW(Error); 1228 1229 1229 1230 /** … … 1242 1243 * 1243 1244 */ 1244 unsigned getInputSignal() const throw(Error);1245 unsigned getInputSignal() const PJSUA2_THROW(Error); 1245 1246 1246 1247 /** … … 1259 1260 * 1260 1261 */ 1261 unsigned getOutputSignal() const throw(Error);1262 unsigned getOutputSignal() const PJSUA2_THROW(Error); 1262 1263 1263 1264 /** … … 1280 1281 * 1281 1282 */ 1282 void 1283 setInputRoute(pjmedia_aud_dev_route route, bool keep=true) throw(Error);1283 void setInputRoute(pjmedia_aud_dev_route route, bool keep=true) 1284 PJSUA2_THROW(Error); 1284 1285 1285 1286 /** … … 1298 1299 * 1299 1300 */ 1300 pjmedia_aud_dev_route getInputRoute() const throw(Error);1301 pjmedia_aud_dev_route getInputRoute() const PJSUA2_THROW(Error); 1301 1302 1302 1303 /** … … 1319 1320 * 1320 1321 */ 1321 void 1322 setOutputRoute(pjmedia_aud_dev_route route, bool keep=true) throw(Error);1322 void setOutputRoute(pjmedia_aud_dev_route route, bool keep=true) 1323 PJSUA2_THROW(Error); 1323 1324 1324 1325 /** … … 1337 1338 * 1338 1339 */ 1339 pjmedia_aud_dev_route getOutputRoute() const throw(Error);1340 pjmedia_aud_dev_route getOutputRoute() const PJSUA2_THROW(Error); 1340 1341 1341 1342 /** … … 1358 1359 * 1359 1360 */ 1360 void setVad(bool enable, bool keep=true) throw(Error);1361 void setVad(bool enable, bool keep=true) PJSUA2_THROW(Error); 1361 1362 1362 1363 /** … … 1374 1375 * 1375 1376 */ 1376 bool getVad() const throw(Error);1377 bool getVad() const PJSUA2_THROW(Error); 1377 1378 1378 1379 /** … … 1395 1396 * 1396 1397 */ 1397 void setCng(bool enable, bool keep=true) throw(Error);1398 void setCng(bool enable, bool keep=true) PJSUA2_THROW(Error); 1398 1399 1399 1400 /** … … 1411 1412 * 1412 1413 */ 1413 bool getCng() const throw(Error);1414 bool getCng() const PJSUA2_THROW(Error); 1414 1415 1415 1416 /** … … 1432 1433 * 1433 1434 */ 1434 void setPlc(bool enable, bool keep=true) throw(Error);1435 void setPlc(bool enable, bool keep=true) PJSUA2_THROW(Error); 1435 1436 1436 1437 /** … … 1448 1449 * 1449 1450 */ 1450 bool getPlc() const throw(Error);1451 bool getPlc() const PJSUA2_THROW(Error); 1451 1452 1452 1453 private: … … 1465 1466 1466 1467 void clearAudioDevList(); 1467 int getActiveDev(bool is_capture) const throw(Error);1468 int getActiveDev(bool is_capture) const PJSUA2_THROW(Error); 1468 1469 1469 1470 friend class Endpoint; … … 1608 1609 * Get information about the specified conference port. 1609 1610 */ 1610 VidConfPortInfo getPortInfo() const throw(Error);1611 VidConfPortInfo getPortInfo() const PJSUA2_THROW(Error); 1611 1612 1612 1613 /** … … 1618 1619 * Get information from specific port id. 1619 1620 */ 1620 static VidConfPortInfo getPortInfoFromId(int port_id) throw(Error);1621 static VidConfPortInfo getPortInfoFromId(int port_id) PJSUA2_THROW(Error); 1621 1622 1622 1623 /** … … 1636 1637 void startTransmit(const VideoMedia &sink, 1637 1638 const VideoMediaTransmitParam ¶m) const 1638 throw(Error);1639 PJSUA2_THROW(Error); 1639 1640 1640 1641 /** … … 1644 1645 * 1645 1646 */ 1646 void stopTransmit(const VideoMedia &sink) const throw(Error);1647 void stopTransmit(const VideoMedia &sink) const PJSUA2_THROW(Error); 1647 1648 1648 1649 /** … … 1675 1676 * param pool The memory pool. 1676 1677 */ 1677 void registerMediaPort(MediaPort port, pj_pool_t *pool) throw(Error);1678 void registerMediaPort(MediaPort port, pj_pool_t *pool) PJSUA2_THROW(Error); 1678 1679 1679 1680 /** … … 1770 1771 * @return video window info. 1771 1772 */ 1772 VideoWindowInfo getInfo() const throw(Error);1773 VideoWindowInfo getInfo() const PJSUA2_THROW(Error); 1773 1774 1774 1775 /** … … 1778 1779 * @return Video media of this renderer window. 1779 1780 */ 1780 VideoMedia getVideoMedia() throw(Error);1781 VideoMedia getVideoMedia() PJSUA2_THROW(Error); 1781 1782 1782 1783 /** … … 1789 1790 * 1790 1791 */ 1791 void Show(bool show) throw(Error);1792 void Show(bool show) PJSUA2_THROW(Error); 1792 1793 1793 1794 /** … … 1799 1800 * 1800 1801 */ 1801 void setPos(const MediaCoordinate &pos) throw(Error);1802 void setPos(const MediaCoordinate &pos) PJSUA2_THROW(Error); 1802 1803 1803 1804 /** … … 1809 1810 * 1810 1811 */ 1811 void setSize(const MediaSize &size) throw(Error);1812 void setSize(const MediaSize &size) PJSUA2_THROW(Error); 1812 1813 1813 1814 /** … … 1822 1823 * negative value for counter-clockwise rotation. 1823 1824 */ 1824 void rotate(int angle) throw(Error);1825 void rotate(int angle) PJSUA2_THROW(Error); 1825 1826 1826 1827 /** … … 1832 1833 * @param win The new output window. 1833 1834 */ 1834 void setWindow(const VideoWindowHandle &win) throw(Error);1835 void setWindow(const VideoWindowHandle &win) PJSUA2_THROW(Error); 1835 1836 1836 1837 private: … … 1921 1922 * @param p Video preview parameters. 1922 1923 */ 1923 void start(const VideoPreviewOpParam ¶m) throw(Error);1924 void start(const VideoPreviewOpParam ¶m) PJSUA2_THROW(Error); 1924 1925 1925 1926 /** 1926 1927 * Stop video preview. 1927 1928 */ 1928 void stop() throw(Error);1929 void stop() PJSUA2_THROW(Error); 1929 1930 1930 1931 /* … … 1938 1939 * @return Video media of the video capture device. 1939 1940 */ 1940 VideoMedia getVideoMedia() throw(Error);1941 VideoMedia getVideoMedia() PJSUA2_THROW(Error); 1941 1942 1942 1943 private: … … 2029 2030 * that accepts video device index as its parameter. 2030 2031 */ 2031 void refreshDevs() throw(Error);2032 void refreshDevs() PJSUA2_THROW(Error); 2032 2033 2033 2034 /** … … 2045 2046 * @return The list of video device info 2046 2047 */ 2047 VideoDevInfo getDevInfo(int dev_id) const throw(Error);2048 VideoDevInfo getDevInfo(int dev_id) const PJSUA2_THROW(Error); 2048 2049 2049 2050 /** … … 2055 2056 * @return The list of video device info 2056 2057 */ 2057 const VideoDevInfoVector &enumDev() throw(Error);2058 const VideoDevInfoVector &enumDev() PJSUA2_THROW(Error); 2058 2059 2059 2060 /** … … 2062 2063 * @return The list of video device info 2063 2064 */ 2064 VideoDevInfoVector2 enumDev2() const throw(Error);2065 VideoDevInfoVector2 enumDev2() const PJSUA2_THROW(Error); 2065 2066 2066 2067 /** … … 2074 2075 */ 2075 2076 int lookupDev(const string &drv_name, 2076 const string &dev_name) const throw(Error);2077 const string &dev_name) const PJSUA2_THROW(Error); 2077 2078 2078 2079 /** … … 2106 2107 void setFormat(int dev_id, 2107 2108 const MediaFormatVideo &format, 2108 bool keep) throw(Error);2109 bool keep) PJSUA2_THROW(Error); 2109 2110 2110 2111 /** … … 2123 2124 * @return keep The video format. 2124 2125 */ 2125 MediaFormatVideo getFormat(int dev_id) const throw(Error);2126 MediaFormatVideo getFormat(int dev_id) const PJSUA2_THROW(Error); 2126 2127 2127 2128 /** … … 2146 2147 void setInputScale(int dev_id, 2147 2148 const MediaSize &scale, 2148 bool keep) throw(Error);2149 bool keep) PJSUA2_THROW(Error); 2149 2150 2150 2151 /** … … 2163 2164 * @return keep The video format. 2164 2165 */ 2165 MediaSize getInputScale(int dev_id) const throw(Error);2166 MediaSize getInputScale(int dev_id) const PJSUA2_THROW(Error); 2166 2167 2167 2168 /** … … 2184 2185 * future use. 2185 2186 */ 2186 void setOutputWindowFlags(int dev_id, int flags, bool keep) throw(Error); 2187 void setOutputWindowFlags(int dev_id, int flags, bool keep) 2188 PJSUA2_THROW(Error); 2187 2189 2188 2190 /** … … 2201 2203 * @return keep The video format. 2202 2204 */ 2203 int getOutputWindowFlags(int dev_id) throw(Error);2205 int getOutputWindowFlags(int dev_id) PJSUA2_THROW(Error); 2204 2206 2205 2207 /** … … 2217 2219 */ 2218 2220 void switchDev(int dev_id, 2219 const VideoSwitchParam ¶m) throw(Error);2221 const VideoSwitchParam ¶m) PJSUA2_THROW(Error); 2220 2222 2221 2223 /** … … 2250 2252 void setCaptureOrient(pjmedia_vid_dev_index dev_id, 2251 2253 pjmedia_orient orient, 2252 bool keep=true) throw(Error);2254 bool keep=true) PJSUA2_THROW(Error); 2253 2255 2254 2256 private:
Note: See TracChangeset
for help on using the changeset viewer.