Fix initialization. Use macro for sampling rate.