Opened 8 years ago

Last modified 8 years ago

#1956 closed enhancement

Support for setting audio input source capability in Android JNI audio device — at Initial Version

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

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:

pjmedia_aud_param_set_cap(&param, PJMEDIA_AUD_DEV_CAP_INPUT_SOURCE,
			 // 4 is VOICE_CALL
                         PJMEDIA_AUD_DEV_ROUTE_CUSTOM | 4);

Valid audio input source values can be found in Android doc here.

Change History (0)

Note: See TracTickets for help on using tickets.