audio

package
v0.0.0-...-2e53e79 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func New

func New(ctx context.Context, channelID discord.ChannelID) (*Service, error)

func (*Service) Destroy

func (s *Service) Destroy()

func (*Service) DestroyIdle

func (s *Service) DestroyIdle() bool

func (*Service) Finished

func (s *Service) Finished() <-chan string

func (*Service) Idle

func (s *Service) Idle() bool

func (*Service) Play

func (s *Service) Play(ctx context.Context, source string, position time.Duration) bool

func (*Service) SongPosition

func (s *Service) SongPosition() <-chan SongPosition

func (*Service) Stop

func (s *Service) Stop()

type SongPosition

type SongPosition struct {
	Elapsed time.Duration
	Length  time.Duration
}

Jump to

Keyboard shortcuts

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