Add automatic rate detection and channels detection rather than hard coding. Cap at 48Khz due to popping most likely
caused by bandwidth issues