sound

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, basedir string) types.Sound

Types

type SoundServer

type SoundServer struct {
	BaseDir      string
	SoundContext *oto.Context
	FNameChan    chan string
}

func (*SoundServer) Play

func (s *SoundServer) Play(ctx context.Context, fname string) error

func (*SoundServer) PlayBlocked

func (s *SoundServer) PlayBlocked(fname string) error

Jump to

Keyboard shortcuts

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