After searching info in the forums,
I managed to play a WAV file after answering a voice call .
The problem is that the WAV is played to the loud speaker although the loud speaker is off.
I want the WAV to be played to the user's ear (like a regular voice call is heard) and not to the loud speaker (unless loud speaker is on).
Please advise - how can I do this ?
Any Info & Suggestions would be great :-)
Thank you very much
Here is the code I use :
// ****** Calling Play method from Active class ******
CPlaySound * player = new CPlaySound();
// ****** PLAYSOUND.H ******
class CPlaySound : public CBase, public MMdaAudioPlayerCallback
virtual void MapcInitComplete(TInt aError, const TTimeIntervalMicroSeconds& aDuration);
virtual void MapcPlayComplete(TInt aError);
// ****** PLAYSOUND.CPP ******
void CPlaySound::MapcInitComplete(TInt aError, const TTimeIntervalMicroSeconds& aDuration)
iAudioPlayer = CMdaAudioPlayerUtility::NewFilePlayerL(_L("c:\\system\\data\\test.wav"), *this);
void CPlaySound::MapcPlayComplete(TInt aError)