gumbleopenal

package
v0.0.0-...-c16cc73 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: GPL-2.0, MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrState        = errors.New("gumbleopenal: invalid state")
	ErrMic          = errors.New("gumbleopenal: microphone disconnected or misconfigured")
	ErrInputDevice  = errors.New("gumbleopenal: invalid input device or parameters")
	ErrOutputDevice = errors.New("gumbleopenal: invalid output device or parameters")
)

Functions

This section is empty.

Types

type Stream

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

func New

func New(client *gumble.Client, inputDevice *string, outputDevice *string, test bool) (*Stream, error)

func (*Stream) AttachStream

func (s *Stream) AttachStream(client *gumble.Client)

func (*Stream) Destroy

func (s *Stream) Destroy()

func (*Stream) GetMicVolume

func (s *Stream) GetMicVolume() float32

func (*Stream) OnAudioStream

func (s *Stream) OnAudioStream(e *gumble.AudioStreamEvent)

func (*Stream) SetMicVolume

func (s *Stream) SetMicVolume(change float32, relative bool)

func (*Stream) StartSource

func (s *Stream) StartSource(inputDevice *string) error

func (*Stream) StopSource

func (s *Stream) StopSource() error

Jump to

Keyboard shortcuts

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