audio

package
v0.13.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2016 License: Apache-2.0, Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Based on aplay audio adaptor written by @colemanserious (https://github.com/colemanserious)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommandName

func CommandName(fileName string) (commandName string, err error)

func RunCommand

func RunCommand(audioCommand string, filename string) error

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

type AudioDriver struct {
	gobot.Eventer
	gobot.Commander
	// contains filtered or unexported fields
}

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL