Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

 

Does anyone know how to control the volume of the handset through BMP ? We have a headless device running BMP 1.02.488 and do not have a keyboard for manually setting the volume. I read in a post a while ago that the timing of ISound for incoming calls is tricky but haven't been able to find the post again.

 

Also, I'm finding some strange behavior (suprisingly enough !). If I set the sound device to Handset, I can get the audio output to play through the handset speaker for calls to ISound_PlayTone() but it seems like it has only two volume settings. Setting the volume through ISound_SetVolume() I get no sound for 0-14, and fully on for settings 15 toAEE_MAX_VOLUME.

 

The other thing is the volume of an  incoming call is always the same (fully on) regardless of the volume setting. Seems like the UI overrides any application volume setting. Is there a way for BMP to override the UI settings ?

 

This seems like an on-going issue so any light you can shed on this woudl help a lot of us.

 

Here's the code I've been trying:

 

// Set device to handset speaker

pMe->pSoundInfo = MALLOC(sizeof(AEESoundInfo)); // alloc mem for pSoundInfo buffer

ISound_Get(pMe->piISound, pMe->pSoundInfo); // get current config

pMe->pSoundInfo->eDevice = AEE_SOUND_DEVICE_HANDSET;

ISound_Set(pMe->piISound, pMe->pSoundInfo ); // update config

ISound_SetDevice(pMe->piISound);

 

// Set volume to max

ISound_SetVolume(pMe->piISound, 10);n // Strange! 0-14: no volume, 15 to AEE_MAX_VOLUME: same loud volume, no change

 

try adding:
pMe->pSoundInfo->eMethod = AEE_SOUND_METHOD_VOICE;
pit may be device specific, OEM may be using another device for earpice volume while in a call whihc may ly·ing in oem range of deices.

try adding:
pMe->pSoundInfo->eMethod = AEE_SOUND_METHOD_VOICE;
pit may be device specific, OEM may be using another device for earpice volume while in a call whihc may ly·ing in oem range of deices.