R: Set device Volume with Pjmedia

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

 



On windows the same source code works, on linux with alsa driver isn’t working.

 

Best Regards

LL

 

Da: Lele [mailto:86eldnl@xxxxxxxxx]
Inviato: Friday, July 28, 2017 15:42
A: 'pjsip list' <pjsip@xxxxxxxxxxxxxxx>
Oggetto: Set device Volume with Pjmedia

 

Hi guys, I tied to configure volume of sound device with the following source code (with pjmedia api), but isn’t working. How can I implement this feature? Thanks in advice

 

pjmedia_aud_stream *pjmediaAudStream;
pjmediaAudStream = pjmedia_snd_port_get_snd_stream(snd_port);

// Volume setting is an unsigned integer showing the level in percent.
 unsigned volToConfigure = 100;
 status = pjmedia_aud_stream_set_cap(pjmediaAudStream, PJMEDIA_AUD_DEV_CAP_OUTPUT_VOLUME_SETTING, &volToConfigure);

if (status != PJ_SUCCESS) { return status; }

 

pjmedia_aud_stream_set_cap return PJ_SUCCESS but the volume isn’t configured. Thanks in advice.

 

Best Regards

LL

_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

[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