faiface / beep

A little package that brings sound to any Go application. Suitable for playback and audio-processing.
MIT License
2.03k stars 150 forks source link

undefined: newDriver #167

Open xuyunfengsp opened 8 months ago

xuyunfengsp commented 8 months ago

I encountered an error while using this package. Is it related to the version of the operating system? The same code works on Windows but gives this error on the M1 Mac.

../../go/pkg/mod/github.com/hajimehoshi/oto@v1.0.1/context.go:69:12: undefined: newDriver

go version go1.21.3 darwin/arm64

MarkKremer commented 8 months ago

From the error message I would guess you're correct. Although I would expect your OS to work. You could try using the unreleased version (github.com/gopxl/beep@main) of the new fork https://github.com/gopxl/beep. We've upgraded the version of the Oto package there which comes with some changes to the drivers which may or may not solve your problem.

If that doesn't work let me know and I'll help you debug a bit (don't have time right now, therefore this quick response) or let them at Oto know.