Reopening the oto context causes a crash on linux pipewire

Fix the logic error that caused this
This commit is contained in:
Daniel 2024-08-08 19:24:33 -04:00
parent a7acacda15
commit 237146b97c

View file

@ -41,6 +41,9 @@ func (p *Player) initOto(samp, channels int) error {
if p.ctx, err = oto.NewContext(samp, channels, 2, 1024); err != nil {
return err
}
p.sampleRate = samp
p.channels = channels
}
return nil