audio

package
v0.0.0-...-d3e27e6 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2016 License: MIT Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func NewManager

func NewManager() (m *Manager, err error)

func (*Manager) Channels

func (m *Manager) Channels() int

func (*Manager) Device

func (m *Manager) Device() *portaudio.DeviceInfo

func (*Manager) NewRecording

func (m *Manager) NewRecording(path string) (*Recording, error)

func (*Manager) Parameters

func (m *Manager) Parameters() portaudio.StreamParameters

func (*Manager) Recording

func (m *Manager) Recording() *Recording

func (*Manager) SampleSize

func (m *Manager) SampleSize() int

func (*Manager) SetChannelCount

func (m *Manager) SetChannelCount(n int)

func (*Manager) SetDevice

func (m *Manager) SetDevice(device *portaudio.DeviceInfo)

func (*Manager) SetSampleSize

func (m *Manager) SetSampleSize(size int) error

func (*Manager) Status

func (m *Manager) Status() map[string]interface{}

type Recording

type Recording struct {
	// contains filtered or unexported fields
}

func NewRecording

func NewRecording(path string, params portaudio.StreamParameters, channels, sampleSize int) *Recording

func (*Recording) Duration

func (r *Recording) Duration() time.Duration

func (*Recording) Error

func (r *Recording) Error() error

func (*Recording) Start

func (r *Recording) Start() error

func (*Recording) Status

func (r *Recording) Status() Status

func (*Recording) Stop

func (r *Recording) Stop()

type Status

type Status int
const (
	RECORDING Status = iota
	STOPPED
	PENDING
)

States for the recording

func (Status) String

func (s Status) String() string

Jump to

Keyboard shortcuts

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