Hello,

We've got a problem with sound volume while playing sound throw CMdaAudioPlayerUtility.
The sound volume seems to be random at each new sound we play.

Here is my code, Could someone tell me what's wrong with it.
For information this code works fine on other S60 3rd eddition (E50,E61,E60,...).

void AudioBuffer::MapcInitComplete(TInt aError, const TTimeIntervalMicroSeconds& /*aDuration*/)
{
lock();

if ((aError == KErrNone) && m_audioPlayerUtility)
m_audioPlayerUtility->SetVolumeRamp(TTimeIntervalMicroSeconds(0));
m_audioPlayerUtility->Play();
m_audioPlayerUtility->SetVolume(m_audioPlayerUtility->MaxVolume()/2);
unlock();
}


Romaric