Changeset 6026 for pjproject/trunk/pjsip/src/pjsua2/media.cpp
- Timestamp:
- Jun 12, 2019 6:00:35 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua2/media.cpp
r5992 r6026 129 129 } 130 130 131 void AudioMedia::registerMediaPort(MediaPort port) throw(Error)131 void AudioMedia::registerMediaPort(MediaPort port) PJSUA2_THROW(Error) 132 132 { 133 133 /* Check if media already added to Conf bridge. */ … … 157 157 158 158 void AudioMedia::registerMediaPort2(MediaPort port, pj_pool_t *pool) 159 throw(Error)159 PJSUA2_THROW(Error) 160 160 { 161 161 /* Check if media already added to Conf bridge. */ … … 194 194 } 195 195 196 ConfPortInfo AudioMedia::getPortInfo() const throw(Error)196 ConfPortInfo AudioMedia::getPortInfo() const PJSUA2_THROW(Error) 197 197 { 198 198 return AudioMedia::getPortInfoFromId(id); … … 204 204 } 205 205 206 ConfPortInfo AudioMedia::getPortInfoFromId(int port_id) throw(Error)206 ConfPortInfo AudioMedia::getPortInfoFromId(int port_id) PJSUA2_THROW(Error) 207 207 { 208 208 pjsua_conf_port_info pj_info; … … 214 214 } 215 215 216 void AudioMedia::startTransmit(const AudioMedia &sink) const throw(Error)216 void AudioMedia::startTransmit(const AudioMedia &sink) const PJSUA2_THROW(Error) 217 217 { 218 218 PJSUA2_CHECK_EXPR( pjsua_conf_connect(id, sink.id) ); … … 221 221 void AudioMedia::startTransmit2(const AudioMedia &sink, 222 222 const AudioMediaTransmitParam ¶m) const 223 throw(Error)223 PJSUA2_THROW(Error) 224 224 { 225 225 pjsua_conf_connect_param pj_param; … … 230 230 } 231 231 232 void AudioMedia::stopTransmit(const AudioMedia &sink) const throw(Error)232 void AudioMedia::stopTransmit(const AudioMedia &sink) const PJSUA2_THROW(Error) 233 233 { 234 234 PJSUA2_CHECK_EXPR( pjsua_conf_disconnect(id, sink.id) ); 235 235 } 236 236 237 void AudioMedia::adjustRxLevel(float level) throw(Error)237 void AudioMedia::adjustRxLevel(float level) PJSUA2_THROW(Error) 238 238 { 239 239 PJSUA2_CHECK_EXPR( pjsua_conf_adjust_tx_level(id, level) ); 240 240 } 241 241 242 void AudioMedia::adjustTxLevel(float level) throw(Error)242 void AudioMedia::adjustTxLevel(float level) PJSUA2_THROW(Error) 243 243 { 244 244 PJSUA2_CHECK_EXPR( pjsua_conf_adjust_rx_level(id, level) ); 245 245 } 246 246 247 unsigned AudioMedia::getRxLevel() const throw(Error)247 unsigned AudioMedia::getRxLevel() const PJSUA2_THROW(Error) 248 248 { 249 249 unsigned level; … … 252 252 } 253 253 254 unsigned AudioMedia::getTxLevel() const throw(Error)254 unsigned AudioMedia::getTxLevel() const PJSUA2_THROW(Error) 255 255 { 256 256 unsigned level; … … 282 282 void AudioMediaPlayer::createPlayer(const string &file_name, 283 283 unsigned options) 284 throw(Error)284 PJSUA2_THROW(Error) 285 285 { 286 286 if (playerId != PJSUA_INVALID_ID) { … … 318 318 const string &label, 319 319 unsigned options) 320 throw(Error)320 PJSUA2_THROW(Error) 321 321 { 322 322 if (playerId != PJSUA_INVALID_ID) { … … 363 363 } 364 364 365 AudioMediaPlayerInfo AudioMediaPlayer::getInfo() const throw(Error)365 AudioMediaPlayerInfo AudioMediaPlayer::getInfo() const PJSUA2_THROW(Error) 366 366 { 367 367 AudioMediaPlayerInfo info; … … 379 379 } 380 380 381 pj_uint32_t AudioMediaPlayer::getPos() const throw(Error)381 pj_uint32_t AudioMediaPlayer::getPos() const PJSUA2_THROW(Error) 382 382 { 383 383 pj_ssize_t pos = pjsua_player_get_pos(playerId); … … 388 388 } 389 389 390 void AudioMediaPlayer::setPos(pj_uint32_t samples) throw(Error)390 void AudioMediaPlayer::setPos(pj_uint32_t samples) PJSUA2_THROW(Error) 391 391 { 392 392 PJSUA2_CHECK_EXPR( pjsua_player_set_pos(playerId, samples) ); … … 426 426 long max_size, 427 427 unsigned options) 428 throw(Error)428 PJSUA2_THROW(Error) 429 429 { 430 430 PJ_UNUSED_ARG(max_size); … … 476 476 477 477 void ToneGenerator::createToneGenerator(unsigned clock_rate, 478 unsigned channel_count) throw(Error) 478 unsigned channel_count) 479 PJSUA2_THROW(Error) 479 480 { 480 481 pj_status_t status; … … 504 505 } 505 506 506 void ToneGenerator::stop() throw(Error)507 void ToneGenerator::stop() PJSUA2_THROW(Error) 507 508 { 508 509 pj_status_t status; … … 516 517 } 517 518 518 void ToneGenerator::rewind() throw(Error)519 void ToneGenerator::rewind() PJSUA2_THROW(Error) 519 520 { 520 521 pj_status_t status; … … 529 530 530 531 void ToneGenerator::play(const ToneDescVector &tones, 531 bool loop) throw(Error)532 bool loop) PJSUA2_THROW(Error) 532 533 { 533 534 pj_status_t status; … … 546 547 547 548 void ToneGenerator::playDigits(const ToneDigitVector &digits, 548 bool loop) throw(Error)549 bool loop) PJSUA2_THROW(Error) 549 550 { 550 551 pj_status_t status; … … 557 558 } 558 559 559 status = pjmedia_tonegen_play_digits(tonegen, (unsigned)digits.size(), &digits[0], 560 status = pjmedia_tonegen_play_digits(tonegen, 561 (unsigned)digits.size(), 562 &digits[0], 560 563 loop? PJMEDIA_TONEGEN_LOOP : 0); 561 564 PJSUA2_CHECK_RAISE_ERROR2(status, "ToneGenerator::playDigits()"); 562 565 } 563 566 564 ToneDigitMapVector ToneGenerator::getDigitMap() const throw(Error)567 ToneDigitMapVector ToneGenerator::getDigitMap() const PJSUA2_THROW(Error) 565 568 { 566 569 const pjmedia_tone_digit_map *pdm; … … 594 597 595 598 void ToneGenerator::setDigitMap(const ToneDigitMapVector &digit_map) 596 throw(Error)599 PJSUA2_THROW(Error) 597 600 { 598 601 unsigned i; … … 682 685 } 683 686 684 int AudDevManager::getCaptureDev() const throw(Error)687 int AudDevManager::getCaptureDev() const PJSUA2_THROW(Error) 685 688 { 686 689 return getActiveDev(true); 687 690 } 688 691 689 AudioMedia &AudDevManager::getCaptureDevMedia() throw(Error)692 AudioMedia &AudDevManager::getCaptureDevMedia() PJSUA2_THROW(Error) 690 693 { 691 694 if (!devMedia) … … 694 697 } 695 698 696 int AudDevManager::getPlaybackDev() const throw(Error)699 int AudDevManager::getPlaybackDev() const PJSUA2_THROW(Error) 697 700 { 698 701 return getActiveDev(false); 699 702 } 700 703 701 AudioMedia &AudDevManager::getPlaybackDevMedia() throw(Error)704 AudioMedia &AudDevManager::getPlaybackDevMedia() PJSUA2_THROW(Error) 702 705 { 703 706 if (!devMedia) … … 706 709 } 707 710 708 void AudDevManager::setCaptureDev(int capture_dev) const throw(Error)711 void AudDevManager::setCaptureDev(int capture_dev) const PJSUA2_THROW(Error) 709 712 { 710 713 pjsua_snd_dev_param param; … … 726 729 } 727 730 728 void AudDevManager::setPlaybackDev(int playback_dev) const throw(Error)731 void AudDevManager::setPlaybackDev(int playback_dev) const PJSUA2_THROW(Error) 729 732 { 730 733 pjsua_snd_dev_param param; … … 746 749 } 747 750 748 const AudioDevInfoVector &AudDevManager::enumDev() throw(Error)751 const AudioDevInfoVector &AudDevManager::enumDev() PJSUA2_THROW(Error) 749 752 { 750 753 pjmedia_aud_dev_info pj_info[MAX_DEV_COUNT]; … … 764 767 } 765 768 766 AudioDevInfoVector2 AudDevManager::enumDev2() const throw(Error)769 AudioDevInfoVector2 AudDevManager::enumDev2() const PJSUA2_THROW(Error) 767 770 { 768 771 pjmedia_aud_dev_info pj_info[MAX_DEV_COUNT]; … … 781 784 } 782 785 783 void AudDevManager::setNullDev() throw(Error)786 void AudDevManager::setNullDev() PJSUA2_THROW(Error) 784 787 { 785 788 PJSUA2_CHECK_EXPR( pjsua_set_null_snd_dev() ); … … 791 794 } 792 795 793 void AudDevManager::setSndDevMode(unsigned mode) const throw(Error)796 void AudDevManager::setSndDevMode(unsigned mode) const PJSUA2_THROW(Error) 794 797 { 795 798 int capture_dev = 0, playback_dev = 0; … … 807 810 808 811 void AudDevManager::setEcOptions(unsigned tail_msec, 809 unsigned options) throw(Error)812 unsigned options) PJSUA2_THROW(Error) 810 813 { 811 814 PJSUA2_CHECK_EXPR( pjsua_set_ec(tail_msec, options) ); 812 815 } 813 816 814 unsigned AudDevManager::getEcTail() const throw(Error)817 unsigned AudDevManager::getEcTail() const PJSUA2_THROW(Error) 815 818 { 816 819 unsigned tail_msec = 0; … … 826 829 } 827 830 828 void AudDevManager::refreshDevs() throw(Error)831 void AudDevManager::refreshDevs() PJSUA2_THROW(Error) 829 832 { 830 833 PJSUA2_CHECK_EXPR( pjmedia_aud_dev_refresh() ); … … 837 840 838 841 AudioDevInfo 839 AudDevManager::getDevInfo(int id) const throw(Error)842 AudDevManager::getDevInfo(int id) const PJSUA2_THROW(Error) 840 843 { 841 844 AudioDevInfo dev_info; … … 849 852 850 853 int AudDevManager::lookupDev(const string &drv_name, 851 const string &dev_name) const throw(Error)854 const string &dev_name) const PJSUA2_THROW(Error) 852 855 { 853 856 pjmedia_aud_dev_index pj_idx = 0; … … 868 871 void 869 872 AudDevManager::setExtFormat(const MediaFormatAudio &format, 870 bool keep) throw(Error)873 bool keep) PJSUA2_THROW(Error) 871 874 { 872 875 pjmedia_format pj_format = format.toPj(); … … 877 880 } 878 881 879 MediaFormatAudio AudDevManager::getExtFormat() const throw(Error)882 MediaFormatAudio AudDevManager::getExtFormat() const PJSUA2_THROW(Error) 880 883 { 881 884 pjmedia_format pj_format; … … 891 894 892 895 void AudDevManager::setInputLatency(unsigned latency_msec, 893 bool keep) throw(Error)896 bool keep) PJSUA2_THROW(Error) 894 897 { 895 898 PJSUA2_CHECK_EXPR( pjsua_snd_set_setting(PJMEDIA_AUD_DEV_CAP_INPUT_LATENCY, … … 898 901 } 899 902 900 unsigned AudDevManager::getInputLatency() const throw(Error)903 unsigned AudDevManager::getInputLatency() const PJSUA2_THROW(Error) 901 904 { 902 905 unsigned latency_msec = 0; … … 910 913 void 911 914 AudDevManager::setOutputLatency(unsigned latency_msec, 912 bool keep) throw(Error)915 bool keep) PJSUA2_THROW(Error) 913 916 { 914 917 PJSUA2_CHECK_EXPR( pjsua_snd_set_setting(PJMEDIA_AUD_DEV_CAP_OUTPUT_LATENCY, … … 917 920 } 918 921 919 unsigned AudDevManager::getOutputLatency() const throw(Error)922 unsigned AudDevManager::getOutputLatency() const PJSUA2_THROW(Error) 920 923 { 921 924 unsigned latency_msec = 0; … … 927 930 } 928 931 929 void AudDevManager::setInputVolume(unsigned volume, bool keep) throw(Error) 932 void AudDevManager::setInputVolume(unsigned volume, bool keep) 933 PJSUA2_THROW(Error) 930 934 { 931 935 PJSUA2_CHECK_EXPR( … … 935 939 } 936 940 937 unsigned AudDevManager::getInputVolume() const throw(Error)941 unsigned AudDevManager::getInputVolume() const PJSUA2_THROW(Error) 938 942 { 939 943 unsigned volume = 0; … … 946 950 } 947 951 948 void AudDevManager::setOutputVolume(unsigned volume, bool keep) throw(Error) 952 void AudDevManager::setOutputVolume(unsigned volume, bool keep) 953 PJSUA2_THROW(Error) 949 954 { 950 955 PJSUA2_CHECK_EXPR( … … 954 959 } 955 960 956 unsigned AudDevManager::getOutputVolume() const throw(Error)961 unsigned AudDevManager::getOutputVolume() const PJSUA2_THROW(Error) 957 962 { 958 963 unsigned volume = 0; … … 965 970 } 966 971 967 unsigned AudDevManager::getInputSignal() const throw(Error)972 unsigned AudDevManager::getInputSignal() const PJSUA2_THROW(Error) 968 973 { 969 974 unsigned signal = 0; … … 976 981 } 977 982 978 unsigned AudDevManager::getOutputSignal() const throw(Error)983 unsigned AudDevManager::getOutputSignal() const PJSUA2_THROW(Error) 979 984 { 980 985 unsigned signal = 0; … … 989 994 void 990 995 AudDevManager::setInputRoute(pjmedia_aud_dev_route route, 991 bool keep) throw(Error)996 bool keep) PJSUA2_THROW(Error) 992 997 { 993 998 PJSUA2_CHECK_EXPR( pjsua_snd_set_setting(PJMEDIA_AUD_DEV_CAP_INPUT_ROUTE, … … 996 1001 } 997 1002 998 pjmedia_aud_dev_route AudDevManager::getInputRoute() const throw(Error)1003 pjmedia_aud_dev_route AudDevManager::getInputRoute() const PJSUA2_THROW(Error) 999 1004 { 1000 1005 pjmedia_aud_dev_route route = PJMEDIA_AUD_DEV_ROUTE_DEFAULT; … … 1008 1013 void 1009 1014 AudDevManager::setOutputRoute(pjmedia_aud_dev_route route, 1010 bool keep) throw(Error)1015 bool keep) PJSUA2_THROW(Error) 1011 1016 { 1012 1017 PJSUA2_CHECK_EXPR( pjsua_snd_set_setting(PJMEDIA_AUD_DEV_CAP_OUTPUT_ROUTE, … … 1015 1020 } 1016 1021 1017 pjmedia_aud_dev_route AudDevManager::getOutputRoute() const throw(Error) 1022 pjmedia_aud_dev_route AudDevManager::getOutputRoute() const 1023 PJSUA2_THROW(Error) 1018 1024 { 1019 1025 pjmedia_aud_dev_route route = PJMEDIA_AUD_DEV_ROUTE_DEFAULT; … … 1025 1031 } 1026 1032 1027 void AudDevManager::setVad(bool enable, bool keep) throw(Error)1033 void AudDevManager::setVad(bool enable, bool keep) PJSUA2_THROW(Error) 1028 1034 { 1029 1035 PJSUA2_CHECK_EXPR( pjsua_snd_set_setting(PJMEDIA_AUD_DEV_CAP_VAD, … … 1032 1038 } 1033 1039 1034 bool AudDevManager::getVad() const throw(Error)1040 bool AudDevManager::getVad() const PJSUA2_THROW(Error) 1035 1041 { 1036 1042 bool enable = false; … … 1042 1048 } 1043 1049 1044 void AudDevManager::setCng(bool enable, bool keep) throw(Error)1050 void AudDevManager::setCng(bool enable, bool keep) PJSUA2_THROW(Error) 1045 1051 { 1046 1052 PJSUA2_CHECK_EXPR( pjsua_snd_set_setting(PJMEDIA_AUD_DEV_CAP_CNG, … … 1049 1055 } 1050 1056 1051 bool AudDevManager::getCng() const throw(Error)1057 bool AudDevManager::getCng() const PJSUA2_THROW(Error) 1052 1058 { 1053 1059 bool enable = false; … … 1059 1065 } 1060 1066 1061 void AudDevManager::setPlc(bool enable, bool keep) throw(Error)1067 void AudDevManager::setPlc(bool enable, bool keep) PJSUA2_THROW(Error) 1062 1068 { 1063 1069 PJSUA2_CHECK_EXPR( pjsua_snd_set_setting(PJMEDIA_AUD_DEV_CAP_PLC, … … 1066 1072 } 1067 1073 1068 bool AudDevManager::getPlc() const throw(Error)1074 bool AudDevManager::getPlc() const PJSUA2_THROW(Error) 1069 1075 { 1070 1076 bool enable = false; … … 1084 1090 } 1085 1091 1086 int AudDevManager::getActiveDev(bool is_capture) const throw(Error)1092 int AudDevManager::getActiveDev(bool is_capture) const PJSUA2_THROW(Error) 1087 1093 { 1088 1094 int capture_dev = 0, playback_dev = 0; … … 1173 1179 } 1174 1180 1175 VideoWindowInfo VideoWindow::getInfo() const throw(Error)1181 VideoWindowInfo VideoWindow::getInfo() const PJSUA2_THROW(Error) 1176 1182 { 1177 1183 VideoWindowInfo vwi; … … 1195 1201 } 1196 1202 1197 VideoMedia VideoWindow::getVideoMedia() throw(Error)1203 VideoMedia VideoWindow::getVideoMedia() PJSUA2_THROW(Error) 1198 1204 { 1199 1205 #if PJSUA_HAS_VIDEO … … 1214 1220 } 1215 1221 1216 void VideoWindow::Show(bool show) throw(Error)1222 void VideoWindow::Show(bool show) PJSUA2_THROW(Error) 1217 1223 { 1218 1224 #if PJSUA_HAS_VIDEO … … 1223 1229 } 1224 1230 1225 void VideoWindow::setPos(const MediaCoordinate &pos) throw(Error)1231 void VideoWindow::setPos(const MediaCoordinate &pos) PJSUA2_THROW(Error) 1226 1232 { 1227 1233 #if PJSUA_HAS_VIDEO … … 1236 1242 } 1237 1243 1238 void VideoWindow::setSize(const MediaSize &size) throw(Error)1244 void VideoWindow::setSize(const MediaSize &size) PJSUA2_THROW(Error) 1239 1245 { 1240 1246 #if PJSUA_HAS_VIDEO … … 1249 1255 } 1250 1256 1251 void VideoWindow::rotate(int angle) throw(Error)1257 void VideoWindow::rotate(int angle) PJSUA2_THROW(Error) 1252 1258 { 1253 1259 #if PJSUA_HAS_VIDEO … … 1258 1264 } 1259 1265 1260 void VideoWindow::setWindow(const VideoWindowHandle &win) throw(Error)1266 void VideoWindow::setWindow(const VideoWindowHandle &win) PJSUA2_THROW(Error) 1261 1267 { 1262 1268 #if PJSUA_HAS_VIDEO … … 1327 1333 } 1328 1334 1329 void VideoPreview::start(const VideoPreviewOpParam ¶m) throw(Error)1335 void VideoPreview::start(const VideoPreviewOpParam ¶m) PJSUA2_THROW(Error) 1330 1336 { 1331 1337 #if PJSUA_HAS_VIDEO … … 1338 1344 } 1339 1345 1340 void VideoPreview::stop() throw(Error)1346 void VideoPreview::stop() PJSUA2_THROW(Error) 1341 1347 { 1342 1348 #if PJSUA_HAS_VIDEO … … 1354 1360 } 1355 1361 1356 VideoMedia VideoPreview::getVideoMedia() throw(Error)1362 VideoMedia VideoPreview::getVideoMedia() PJSUA2_THROW(Error) 1357 1363 { 1358 1364 #if PJSUA_HAS_VIDEO … … 1444 1450 1445 1451 /////////////////////////////////////////////////////////////////////////////// 1446 void VidDevManager::refreshDevs() throw(Error)1452 void VidDevManager::refreshDevs() PJSUA2_THROW(Error) 1447 1453 { 1448 1454 #if PJSUA_HAS_VIDEO … … 1460 1466 } 1461 1467 1462 VideoDevInfo VidDevManager::getDevInfo(int dev_id) const throw(Error)1468 VideoDevInfo VidDevManager::getDevInfo(int dev_id) const PJSUA2_THROW(Error) 1463 1469 { 1464 1470 VideoDevInfo dev_info; … … 1475 1481 } 1476 1482 1477 const VideoDevInfoVector &VidDevManager::enumDev() throw(Error)1483 const VideoDevInfoVector &VidDevManager::enumDev() PJSUA2_THROW(Error) 1478 1484 { 1479 1485 #if PJSUA_HAS_VIDEO … … 1495 1501 } 1496 1502 1497 VideoDevInfoVector2 VidDevManager::enumDev2() const throw(Error)1503 VideoDevInfoVector2 VidDevManager::enumDev2() const PJSUA2_THROW(Error) 1498 1504 { 1499 1505 VideoDevInfoVector2 vdiv2; … … 1514 1520 1515 1521 int VidDevManager::lookupDev(const string &drv_name, 1516 const string &dev_name) const throw(Error)1522 const string &dev_name) const PJSUA2_THROW(Error) 1517 1523 { 1518 1524 pjmedia_vid_dev_index pj_idx = 0; … … 1541 1547 void VidDevManager::setFormat(int dev_id, 1542 1548 const MediaFormatVideo &format, 1543 bool keep) throw(Error)1549 bool keep) PJSUA2_THROW(Error) 1544 1550 { 1545 1551 #if PJSUA_HAS_VIDEO … … 1557 1563 } 1558 1564 1559 MediaFormatVideo VidDevManager::getFormat(int dev_id) const throw(Error) 1565 MediaFormatVideo VidDevManager::getFormat(int dev_id) const 1566 PJSUA2_THROW(Error) 1560 1567 { 1561 1568 MediaFormatVideo vid_format; … … 1575 1582 void VidDevManager::setInputScale(int dev_id, 1576 1583 const MediaSize &scale, 1577 bool keep) throw(Error)1584 bool keep) PJSUA2_THROW(Error) 1578 1585 { 1579 1586 #if PJSUA_HAS_VIDEO … … 1592 1599 } 1593 1600 1594 MediaSize VidDevManager::getInputScale(int dev_id) const throw(Error)1601 MediaSize VidDevManager::getInputScale(int dev_id) const PJSUA2_THROW(Error) 1595 1602 { 1596 1603 MediaSize scale; … … 1612 1619 void VidDevManager::setOutputWindowFlags(int dev_id, 1613 1620 int flags, 1614 bool keep) throw(Error)1621 bool keep) PJSUA2_THROW(Error) 1615 1622 { 1616 1623 #if PJSUA_HAS_VIDEO … … 1626 1633 } 1627 1634 1628 int VidDevManager::getOutputWindowFlags(int dev_id) throw(Error)1635 int VidDevManager::getOutputWindowFlags(int dev_id) PJSUA2_THROW(Error) 1629 1636 { 1630 1637 int flags = 0; … … 1641 1648 1642 1649 void VidDevManager::switchDev(int dev_id, 1643 const VideoSwitchParam ¶m) throw(Error) 1650 const VideoSwitchParam ¶m) 1651 PJSUA2_THROW(Error) 1644 1652 { 1645 1653 #if PJSUA_HAS_VIDEO … … 1679 1687 void VidDevManager::setCaptureOrient(pjmedia_vid_dev_index dev_id, 1680 1688 pjmedia_orient orient, 1681 bool keep) throw(Error)1689 bool keep) PJSUA2_THROW(Error) 1682 1690 { 1683 1691 #if PJSUA_HAS_VIDEO … … 1867 1875 1868 1876 void VideoMedia::registerMediaPort(MediaPort port, pj_pool_t *pool) 1869 throw(Error)1877 PJSUA2_THROW(Error) 1870 1878 { 1871 1879 #if PJSUA_HAS_VIDEO … … 1907 1915 } 1908 1916 1909 VidConfPortInfo VideoMedia::getPortInfo() const throw(Error)1917 VidConfPortInfo VideoMedia::getPortInfo() const PJSUA2_THROW(Error) 1910 1918 { 1911 1919 return VideoMedia::getPortInfoFromId(id); … … 1917 1925 } 1918 1926 1919 VidConfPortInfo VideoMedia::getPortInfoFromId(int port_id) throw(Error)1927 VidConfPortInfo VideoMedia::getPortInfoFromId(int port_id) PJSUA2_THROW(Error) 1920 1928 { 1921 1929 #if PJSUA_HAS_VIDEO … … 1934 1942 void VideoMedia::startTransmit(const VideoMedia &sink, 1935 1943 const VideoMediaTransmitParam ¶m) const 1936 throw(Error)1944 PJSUA2_THROW(Error) 1937 1945 { 1938 1946 PJ_UNUSED_ARG(param); … … 1945 1953 } 1946 1954 1947 void VideoMedia::stopTransmit(const VideoMedia &sink) const throw(Error) 1955 void VideoMedia::stopTransmit(const VideoMedia &sink) const 1956 PJSUA2_THROW(Error) 1948 1957 { 1949 1958 #if PJSUA_HAS_VIDEO
Note: See TracChangeset
for help on using the changeset viewer.