Replace the usage of SOUND_PCM_WRITE_RATE with SNDCTL_DSP_SPEED. (See issue #292)