Documentation ¶
Index ¶
- func NewPlayer(basepath string, volume float64, stdlog *log.Logger, dbglog *log.Logger) (p *player, err error)
- type Meter
- type MeterChannel
- type Player
- func (p *Player) AddStateChangeHandler(callback StateChangeCB, userdata interface{}) error
- func (p *Player) AddUpdateHandler(callback UpdateCB, userdata interface{}) error
- func (p *Player) Load(cart, cut uint) error
- func (p *Player) Pause() error
- func (p *Player) Play() error
- func (p *Player) PlayPause() error
- func (p *Player) Seek(pos float64) error
- func (p *Player) Stop() error
- func (p *Player) Unload() error
- type State
- type StateChangeCB
- type UpdateCB
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Meter ¶
type Meter []MeterChannel
type MeterChannel ¶
type Player ¶
type Player struct {
// contains filtered or unexported fields
}
func (*Player) AddStateChangeHandler ¶
func (p *Player) AddStateChangeHandler(callback StateChangeCB, userdata interface{}) error
func (*Player) AddUpdateHandler ¶
type StateChangeCB ¶
Click to show internal directories.
Click to hide internal directories.