fixed space compile issue.
Added flag to make output device sample rate match the input source.