Check for hardware sampling rate automatically.