I am trying to play an AMR file with APS 2.4.3

It works but there is lot of delay while playing the file; the reason is because i read packet from file and then pass it to APS to play it. As it involves file reading ; it is taking time.

So the file plays but in segments not like regular smooth playing.

So what is the best way to play a file using APS?

I am thinking of doing file reading in a diff thread and then passint packets to the APS thread for playing. Does that make sense?