alsa: Fix sample rate negotiation (#441)

This change fixes the sample rate negotiation functionality, by making a comparison against the value of the slice and not the index.
This commit is contained in:
David Sutton 2024-02-13 10:38:40 +10:30
parent 839188d808
commit c8f846f87d
1 changed files with 1 additions and 1 deletions

View File

@ -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
}