amrnb and amrwb codec written by clean c99