alsa.go: Finding rate function not working

Issue #441 resolved
David Sutton created an issue

The rate finding functionality is incorrectly comparing the sampleRate to the index of the valid rates in the array, and not the value.

var rates = [8]int{8000, 16000, 32000, 44100, 48000, 88200, 96000, 192000}

for r := range rates {
  ...
}

Comments (1)

  1. Log in to comment