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

Developer

Forums

Forums:

Does ISOUNDPLAYER_GetVolume work? It seems fine in the emulator, but on a handset it seems to always return zero.

Here's a snippet of code in case I'm doing something dumb.

/* This is part of my gameloop every frame */

void UpdateSoundPlayer ( Dancing_t *pApp )
{

else if ( pApp->SoundPlayer.isoundFlag & SNDFLAG_VOLUME )
ISOUNDPLAYER_GetVolume( pApp->SoundPlayer.pISoundPlayer );

/* Here is my CallBack */
void CallBackSoundPlayer( void *tmpApp, AEESoundPlayerCmd SndPlayerCmd,
AEESoundPlayerStatus SndPlayerStatus,
uint32 dwParam )
{
MyApp_t *pApp = ( MyApp_t * )tmpApp;
AEESoundPlayerCmdData *pCmdData = ( AEESoundPlayerCmdData *)dwParam;
switch ( SndPlayerCmd )
{
case AEE_SOUNDPLAYER_VOLUME_CB:
switch( SndPlayerStatus )
{
case AEE_SOUNDPLAYER_SUCCESS:
pApp->SoundPlayer.iVolume = pCmdData->wVolume;
pApp->SoundPlayer.isoundFlag &= ~SNDFLAG_VOLUME;
break;

}

Anybody? Thoughts? Ideas?
Ok I tried having another callback and using ISOUND interface instead of ISOUNDPLAYER interface. ISOUND doesn't return 0, but it also doesn't change values when you adjust volume on side of t720 handset. This makes me think it doesn't work either. Also when I set ISOUNDPLAYER volume to the volume returned by ISOUND getvolume the volume changes.

Anybody? Thoughts? Ideas?
Ok I tried having another callback and using ISOUND interface instead of ISOUNDPLAYER interface. ISOUND doesn't return 0, but it also doesn't change values when you adjust volume on side of t720 handset. This makes me think it doesn't work either. Also when I set ISOUNDPLAYER volume to the volume returned by ISOUND getvolume the volume changes.

One of the things to keep in mind is that setting the volume on the t720 does not work. It's not an error on your end, it's a bug in the firmware.

One of the things to keep in mind is that setting the volume on the t720 does not work. It's not an error on your end, it's a bug in the firmware.

Is it possible to check and set volume on other handsets

Is it possible to check and set volume on other handsets

Yes, most of them seem to work properly. The t720 is the one offender that comes to mind immediately.

Yes, most of them seem to work properly. The t720 is the one offender that comes to mind immediately.

Well thanks for your help.
I guess T720 owners are screwed again. ( I also can't get vibration right on T720. If I call stop I can prevent it from vibrating four times but it stops my soundplayer. Argh! )
If anyone cares I've been working mixed T720 and T730 and they both do the same thing. So don't bother with those.

Well thanks for your help.
I guess T720 owners are screwed again. ( I also can't get vibration right on T720. If I call stop I can prevent it from vibrating four times but it stops my soundplayer. Argh! )
If anyone cares I've been working mixed T720 and T730 and they both do the same thing. So don't bother with those.