common

package
v0.0.0-...-2889c3b Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// KindNone is nothing!
	KindNone = Kind(iota)
	// KindSoundCard is an active sound playback device (e.g.: a sound card attached to speakers)
	KindSoundCard
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Kind

type Kind int

Kind is an enumeration of the device type

type Settings

type Settings struct {
	Name             string
	Channels         int
	SamplesPerSecond int
	BitsPerSample    int
	Filepath         string
	OnRowOutput      WrittenCallback
}

Settings is the settings for configuring an output device

type WrittenCallback

type WrittenCallback func(deviceCommon Kind, premix *premix.PremixData)

WrittenCallback defines the callback for when a premix buffer is mixed/rendered and output on the device

Jump to

Keyboard shortcuts

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