diff --git a/device/alsa/alsa.go b/device/alsa/alsa.go index 87eed7dd..815d885d 100644 --- a/device/alsa/alsa.go +++ b/device/alsa/alsa.go @@ -281,7 +281,7 @@ func (d *ALSA) open() error { var rate int foundRate := false - for r := range rates { + for _, r := range rates { if r < int(d.SampleRate) { continue }