I'm writing a player using CMdaAudioPlayerUtility. Whenever there is a message interrupt (phone call or SMS, for examples), the player stop with KErrDied. I want to resume the playback when it's possible.
Currently, I monitor for the call status change using System Agent. But is there any way to monitor when the message tone ends?
Currently, I make it retry after 1 second. It's ok with default message tone which is slightly shorter than 1 second but I tried with a longer midi for message tone (like 5 seconds or more). What happens is my player keep trying to play and die and try again. Also make the message tone paused a little while during its playback.
Is there anyway to know if the sound channel is free or not? Instead of just try to play in my player and let it die with KErrDied?
Thanks in advance.