diff options
author | Liong Sauw Ming <ming@teluu.com> | 2016-08-25 03:28:54 +0000 |
---|---|---|
committer | Liong Sauw Ming <ming@teluu.com> | 2016-08-25 03:28:54 +0000 |
commit | 0de0c9e6ce1c55c14525492d924accf430718ec8 (patch) | |
tree | 468e4fa003b5f27ae92e61118d5096d9866e1304 /pjmedia | |
parent | 4bdd1a0cf925cf520268da714664007c6612739d (diff) |
Re #1956: Support for setting audio input source capability in Android JNI audio device
* modify the sample code
* add symbols for pjsua2
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5430 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjmedia')
-rw-r--r-- | pjmedia/include/pjmedia/audiodev.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pjmedia/include/pjmedia/audiodev.h b/pjmedia/include/pjmedia/audiodev.h index b0779291..e5df5f8a 100644 --- a/pjmedia/include/pjmedia/audiodev.h +++ b/pjmedia/include/pjmedia/audiodev.h @@ -266,9 +266,10 @@ typedef enum pjmedia_aud_dev_route * VOICE_COMMUNICATION (7). To change it to another value, set * the input source capability of pjmedia_aud_param accordingly. * For example: + * // 6 is VOICE_RECOGNITION + * unsigned aud_source = PJMEDIA_AUD_DEV_ROUTE_CUSTOM | 6; * pjmedia_aud_param_set_cap(¶m, PJMEDIA_AUD_DEV_CAP_INPUT_SOURCE, - * // 4 is VOICE_CALL - * PJMEDIA_AUD_DEV_ROUTE_CUSTOM | 4); + * &aud_source); */ PJMEDIA_AUD_DEV_ROUTE_CUSTOM = 128 |