mirror of https://bitbucket.org/ausocean/av.git
Merged in 441-fix-check-samplerate (pull request #533)
alsa: Fix sample rate negotiation (#441) Approved-by: Trek Hopton
This commit is contained in:
commit
391db6b210
|
@ -281,7 +281,7 @@ func (d *ALSA) open() error {
|
||||||
|
|
||||||
var rate int
|
var rate int
|
||||||
foundRate := false
|
foundRate := false
|
||||||
for r := range rates {
|
for _, r := range rates {
|
||||||
if r < int(d.SampleRate) {
|
if r < int(d.SampleRate) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue