norns

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2021 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const IMAGE_FINAL_WIDTH = 365

Variables

This section is empty.

Functions

This section is empty.

Types

type Incoming

type Incoming struct {
	Filename string
	LastSeen time.Time
}

type Norns

type Norns struct {
	Name        string `json:"name"`
	Room        string `json:"room"` // designates where it wants to receive audio\
	AllowMenu   bool   `json:"allowmenu"`
	AllowEncs   bool   `json:"allowencs"`
	AllowKeys   bool   `json:"allowkeys"`
	AllowTwitch bool   `json:"allowtwitch"`
	AllowRoom   bool   `json:"allowroom"`
	SendAudio   bool   `json:"sendaudio"`
	KeepAwake   bool   `json:"keepawake"`
	FrameRate   int    `json:"framerate"`
	PacketSize  int    `json:"packetsize"`
	BufferTime  int    `json:"buffertime"`
	RoomSize    int    `json:"roomsize"`
	RoomVolume  int    `json:"roomvolume"`

	sync.Mutex
	// contains filtered or unexported fields
}

func New

func New(configFile string, pid int32, nornsOnlineHost string, matronAddress string) (n *Norns, err error)

New returns a new instance

func (*Norns) Load

func (n *Norns) Load() (updated bool, err error)

Load will update the configuration if config file changes

func (*Norns) Run

func (n *Norns) Run() (err error)

Run forever

func (*Norns) Stream

func (n *Norns) Stream() (filename string, err error)

FindChangingFile returns the name of the file that's changing (the one that's being recorded)

Jump to

Keyboard shortcuts

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