Playing ring tone with respect to iPhone volume level

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

 



I am using the usual pjsua_player_create and pjsua_conf_connect PJSIP
way of registering ring sound files and and playing them.

I have tried using this for Audio Session

AudioSessionGetProperty(kAudioSessionProperty_CurrentHardwareOutputVolume,
&propertySize, &volume);

but with no effect. I always get the same level of volume. That is why
i thought may be there is some sort of setting i need to use in order
for  to adhere to volume level.



On Thu, Mar 22, 2012 at 3:21 PM,  <s.marek at avm.de> wrote:
> What API do you use to play the sound?
>
> Does it help to explicitly set the audio session category to a specific
> value before playing? Did you know about the "Audio Session Programming
> Guide" in the Apple documentation?
>
> Sebastian.
>
>
> | I am trying to find a way of receiving incoming call ans playing the
> | ring tone in the same volume level as set by the iPhone volume rocker,
> | or mute button. Currently when i receive a call the ring tone os
> | always the same, and loud.
> |
> | Is there any etting I need configure to allow PJSIP follow what the
> | iPhone has preset?
>
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org



-- 
-------------------------------------
Fadi Chehimi, PhD
Mobile Software Engineer
Localphone Ltd
4 Paradise Street, Sheffield, S1 2DF, UK



[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