I am successfully using APS to play a file over GSM but now i need to know when the play is done.

I used code from APS example and inside the ReadNextBuffer function I read buffers from file, but when it is done, I discovered that if I stop messages queuing, it has still not been done, but if I do not stop it, I have no idea about how to know when queue has been processed.

Any idea?