Documentation
¶
Index ¶
- Variables
- func IgnoreError(f func() error)
- func UnavailableContext() context.Context
- func WrapOnError(errInner error, errOuter error) error
- type Player
- func (p *Player) Current() time.Duration
- func (p *Player) Duration() time.Duration
- func (p *Player) IsPlaying() bool
- func (p *Player) Pause() (err error)
- func (p *Player) Remaining() time.Duration
- func (p *Player) SetSMF(smfdata io.Reader, tracks ...int) error
- func (p *Player) SetSMFObj(song *smf.SMF) error
- func (p *Player) Start() error
- func (p *Player) Stop() (err error)
- func (p *Player) Wait()
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func IgnoreError ¶
func IgnoreError(f func() error)
IgnoreError will call function f and ignore error return. Useful to explicitly ignore errors in deferred functions.
func UnavailableContext ¶
UnavailableContext returns a context that is already canceled
func WrapOnError ¶
WrapOnError will return nil if errInner is nil. Otherwise returns an error that wraps both errInner and errOuter.
Types ¶
type Player ¶
type Player struct {
// contains filtered or unexported fields
}
Player plays SMF data
Click to show internal directories.
Click to hide internal directories.