add function to resample pcm data, and then encode from PCM to AAC