api

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2026 License: MIT Imports: 11 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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