Added sampling rate and frame duration configuration options, need to add good interpolation algorithm for playback