Documentation ¶
Overview ¶
Based on aplay audio adaptor written by @colemanserious (https://github.com/colemanserious)
Index ¶
- func CommandName(fileName string) (commandName string, err error)
- func RunCommand(audioCommand string, filename string) error
- type AudioAdaptor
- type AudioDriver
- func (d *AudioDriver) Connection() gobot.Connection
- func (d *AudioDriver) Filename() string
- func (d *AudioDriver) Halt() (err []error)
- func (d *AudioDriver) Name() string
- func (d *AudioDriver) Play() []error
- func (d *AudioDriver) Sound(fileName string) []error
- func (d *AudioDriver) Start() (err []error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommandName ¶
func RunCommand ¶
Types ¶
type AudioAdaptor ¶
type AudioAdaptor struct {
// contains filtered or unexported fields
}
func NewAudioAdaptor ¶
func NewAudioAdaptor(name string) *AudioAdaptor
func (*AudioAdaptor) Connect ¶
func (a *AudioAdaptor) Connect() []error
func (*AudioAdaptor) Finalize ¶
func (a *AudioAdaptor) Finalize() []error
func (*AudioAdaptor) Name ¶
func (a *AudioAdaptor) Name() string
func (*AudioAdaptor) Sound ¶
func (a *AudioAdaptor) Sound(fileName string) []error
type AudioDriver ¶
func NewAudioDriver ¶
func NewAudioDriver(a *AudioAdaptor, name string, filename string) *AudioDriver
func (*AudioDriver) Connection ¶
func (d *AudioDriver) Connection() gobot.Connection
func (*AudioDriver) Filename ¶
func (d *AudioDriver) Filename() string
func (*AudioDriver) Halt ¶
func (d *AudioDriver) Halt() (err []error)
func (*AudioDriver) Name ¶
func (d *AudioDriver) Name() string
func (*AudioDriver) Play ¶
func (d *AudioDriver) Play() []error
func (*AudioDriver) Sound ¶
func (d *AudioDriver) Sound(fileName string) []error
func (*AudioDriver) Start ¶
func (d *AudioDriver) Start() (err []error)
Click to show internal directories.
Click to hide internal directories.