mirror of
https://github.com/xaionaro-go/streamctl.git
synced 2025-12-24 12:27:57 +08:00
20 lines
278 B
Go
20 lines
278 B
Go
package main
|
|
|
|
import (
|
|
"bytes"
|
|
_ "embed"
|
|
|
|
"github.com/xaionaro-go/streamctl/pkg/audio"
|
|
)
|
|
|
|
//go:embed resources/long_audio.ogg
|
|
var longVorbis []byte
|
|
|
|
func main() {
|
|
a := audio.NewAudioAuto()
|
|
err := a.PlayVorbis(bytes.NewReader(longVorbis))
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
}
|