pulse

package
v0.0.0-...-0ab370b Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UnloadPulse

func UnloadPulse(data *PulseData, config PulseMicConfig) error

UnloadPulse unloads and deletes an existing virtual microphone

Types

type PulseData

type PulseData struct {
	PulseModuleIDX uint32
	VirtualMicPath string
}

func SetupPulseDevice

func SetupPulseDevice(config PulseMicConfig) (*PulseData, error)

SetupPulseDevice creates and registers a virtual microphone

type PulseMicConfig

type PulseMicConfig struct {
	Address  string `yaml:"address"`
	Dir      string `yaml:"dir"`
	Format   string `yaml:"format"`
	Rate     int    `yaml:"rate"`
	Channels int    `yaml:"channels"`
	Filename string `yaml:"filename"`
}

Jump to

Keyboard shortcuts

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