Documentation ¶
Index ¶
- Variables
- func AudioStreamBroker() *util.Broker[EnumAudioStreamState]
- func Close()
- func Dispose()
- func Duration() time.Duration
- func GetAllSampleData() [][2]float64
- func GetDecoder(fpath string) (beep.StreamSeekCloser, *beep.Format, error)
- func GetMonoAllSampleData() []float64
- func IsAudioLoaded() bool
- func IsRunning() bool
- func Open(fpath string)
- func Pause()
- func Play()
- func Position() time.Duration
- func SetPosition(t time.Duration)
- func Stop()
- func StreamFormat() *beep.Format
- type AudioStream
- type EnumAudioStreamState
- type Format
Constants ¶
This section is empty.
Variables ¶
View Source
var (
OnStop func()
)
Functions ¶
func AudioStreamBroker ¶
func AudioStreamBroker() *util.Broker[EnumAudioStreamState]
func GetAllSampleData ¶
func GetAllSampleData() [][2]float64
func GetDecoder ¶
func GetMonoAllSampleData ¶
func GetMonoAllSampleData() []float64
func IsAudioLoaded ¶
func IsAudioLoaded() bool
func SetPosition ¶
func StreamFormat ¶
Types ¶
type AudioStream ¶
type AudioStream struct { beep.StreamSeekCloser Format *beep.Format }
type EnumAudioStreamState ¶
type EnumAudioStreamState int
const ( EnumAudioStreamOpen EnumAudioStreamState = iota + 1 EnumAudioStreamClosed EnumAudioStreamStarted EnumAudioStreamPaused EnumAudioStreamStoped )
Source Files ¶
Click to show internal directories.
Click to hide internal directories.