Ticket #1956 (closed enhancement: fixed)

Opened 11 months ago

Last modified 11 months ago

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) (diff)

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(&param, 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

comment:1 Changed 11 months ago by ming

  • Status changed from new to closed
  • Resolution set to fixed

In 5426:

Fixed #1956: Support for setting audio input source capability in Android JNI audio device

comment:2 Changed 11 months ago by ming

  • Description modified (diff)

comment:3 Changed 11 months ago by ming

  • Description modified (diff)

comment:4 Changed 11 months ago by ming

In 5430:

Re #1956: Support for setting audio input source capability in Android JNI audio device

  • modify the sample code
  • add symbols for pjsua2
Note: See TracTickets for help on using tickets.