Restart Q64 when trying to play the AMR data

What size buffer should be for codec ADL_AUDIO_AMR_RATE_12_20?
Where can be seen a working example of playing AMR?
Thanks.