Change microphone volume

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I have the following problem. When I change the speaker volume using the following code, everything works:

stream = pjmedia_snd_port_get_snd_stream(sndPort);
status = pjmedia_aud_stream_set_cap(stream, PJMEDIA_AUD_DEV_CAP_OUTPUT_VOLUME_SETTING, &volumeSpeaker);

But if I use PJMEDIA_AUD_DEV_CAP_INPUT_VOLUME_SETTING instead of the PJMEDIA_AUD_DEV_CAP_OUTPUT_VOLUME_SETTING for microphone volume control, function pjmedia_aud_stream_set_cap returns error PJMEDIA_EAUD_INVCAP (420008 - The audio capability is invalid or not supported). Is there some way to control the volume of the microphone or the microphone dis/connect from the port?



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux