I am developing game, I have requirement to play sound immidiate after I call play() function. But in current implementation am getting delay after calling function.
mediaObject->stop();//stop current sound before playing another
mediaObject = //create new mediaObject
Above functions is in C++ class. I am creating instance of that class in QML and calling play function. But sound plays after delay.
( Note: using QSound is not an option as N900 will hang when QSound is used )
Please let me know how to make sound play as soon as I call function.