- Timestamp:
- Apr 25, 2013 8:09:42 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia-audiodev/bb10_dev.c
r4495 r4502 634 634 if (stream->pb_ctrl_audio_manager_handle == 0) { 635 635 /* lazy init an audio manager handle */ 636 ret = audio_manager_get_handle(AUDIO_TYPE_V IDEO_CHAT, 0, false,636 ret = audio_manager_get_handle(AUDIO_TYPE_VOICE, 0, false, 637 637 &stream->pb_ctrl_audio_manager_handle); 638 638 if (ret != 0) { … … 647 647 stream->pb_ctrl_audio_manager_handle, 648 648 AUDIO_TYPE_VIDEO_CHAT, 649 AUDIO_DEVICE_ SPEAKER,649 AUDIO_DEVICE_DEFAULT, 650 650 AUDIO_DEVICE_DEFAULT); 651 651 } else { 652 652 ret = audio_manager_set_handle_type( 653 653 stream->pb_ctrl_audio_manager_handle, 654 AUDIO_TYPE_V IDEO_CHAT,655 AUDIO_DEVICE_ HANDSET,654 AUDIO_TYPE_VOICE, 655 AUDIO_DEVICE_DEFAULT, 656 656 AUDIO_DEVICE_DEFAULT); 657 657 } 658 658 659 if (ret == 0) { 660 /* RIM recommend this call */ 661 ret = audio_manager_set_handle_routing_conditions( 662 stream->pb_ctrl_audio_manager_handle, 663 SETTINGS_RESET_ON_DEVICE_CONNECTION); 664 if (ret != 0) { 665 TRACE_((THIS_FILE, 666 "audio_manager_set_handle_routing_conditions ret = %d", 667 ret)); 668 return PJMEDIA_EAUD_SYSERR; 669 } 670 } else { 671 TRACE_((THIS_FILE, "audio_manager_set_handle_type ret = %d", ret)); 672 return PJMEDIA_EAUD_SYSERR; 673 } 674 675 return PJ_SUCCESS; 659 if (ret != 0) { 660 return PJMEDIA_EAUD_SYSERR; 661 }else{ 662 return PJ_SUCCESS; 663 } 676 664 } 677 665
Note: See TracChangeset
for help on using the changeset viewer.