#1956 closed enhancement (fixed)
Support for setting audio input source capability in Android JNI audio device
Reported by: | ming | Owned by: | nanang |
---|---|---|---|
Priority: | normal | Milestone: | release-2.6 |
Component: | pjmedia-audiodev | Version: | trunk |
Keywords: | Cc: | ||
Backport to 1.x milestone: | Backported: | no |
Description (last modified by ming)
Add PJMEDIA_AUD_DEV_CAP_INPUT_SOURCE capability (as an alias of PJMEDIA_AUD_DEV_CAP_INPUT_ROUTE) to support changing audio input source. The value of this capability is PJMEDIA_AUD_DEV_ROUTE_CUSTOM + the_desired_audio_input_source_constants.
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, &aud_source);
Valid audio input source values can be found in Android doc here.
Thanks to Johan Lantz for the suggestion.
Change History (4)
comment:1 Changed 8 years ago by ming
- Resolution set to fixed
- Status changed from new to closed
comment:2 Changed 8 years ago by ming
- Description modified (diff)
comment:3 Changed 8 years ago by ming
- Description modified (diff)
comment:4 Changed 8 years ago by ming
In 5430:
Note: See
TracTickets for help on using
tickets.
In 5426: