api

package
v0.58.4 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2025 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandPlayResponse added in v0.55.2

type CommandPlayResponse struct {
	EndTime          time.Time
	ExpressionResult any
}

type Service

type Service interface {
	Context() core.Context
	CommandInspect(file string, lineEnd int, source string) (any, error)
	CommandPlay(file string, lineEnd int, source string) (CommandPlayResponse, error)
	CommandStop(file string, lineEnd int, source string) (any, error)
	CommandEvaluate(file string, lineEnd int, source string) (any, error)
	CommandKill() error
	CommandHover(source string) string
	ChangeDefaultDeviceAndChannel(isInput bool, deviceID int, channel int) error
	CommandMIDISample(file string, lineEnd int, source string) ([]byte, error)
	ListDevices() []core.DeviceDescriptor
}

func NewService

func NewService(ctx core.Context) Service

type ServiceImpl

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

func (*ServiceImpl) ChangeDefaultDeviceAndChannel

func (s *ServiceImpl) ChangeDefaultDeviceAndChannel(isInput bool, deviceID int, channel int) error

func (*ServiceImpl) CommandEvaluate

func (s *ServiceImpl) CommandEvaluate(file string, lineEnd int, source string) (any, error)

func (*ServiceImpl) CommandHover

func (s *ServiceImpl) CommandHover(source string) string

func (*ServiceImpl) CommandInspect

func (s *ServiceImpl) CommandInspect(file string, lineEnd int, source string) (any, error)

func (*ServiceImpl) CommandKill

func (s *ServiceImpl) CommandKill() error

func (*ServiceImpl) CommandMIDISample

func (s *ServiceImpl) CommandMIDISample(filename string, lineEnd int, source string) ([]byte, error)

func (*ServiceImpl) CommandPlay

func (s *ServiceImpl) CommandPlay(file string, lineEnd int, source string) (CommandPlayResponse, error)

func (*ServiceImpl) CommandStop

func (s *ServiceImpl) CommandStop(file string, lineEnd int, source string) (any, error)

func (*ServiceImpl) Context

func (s *ServiceImpl) Context() core.Context

func (*ServiceImpl) ListDevices added in v0.58.0

func (s *ServiceImpl) ListDevices() []core.DeviceDescriptor

Jump to

Keyboard shortcuts

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