feat(go/audio): implement basic audio output with oto

splitting implementation into a separate package to potentially allow for other sorts of output, too.
This commit is contained in:
Matias Lahti
2020-11-07 19:22:59 +02:00
parent 41ce5d1efe
commit fa772ddd77
5 changed files with 132 additions and 0 deletions

6
go4k/audio/player.go Normal file
View File

@ -0,0 +1,6 @@
package audio
type Player interface {
Play(buffer []float32) (err error)
Close()
}