interfaces

package
v0.0.0-...-6c10439 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DCAFilePlayer

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

func NewDCAFilePlayer

func NewDCAFilePlayer(path string) *DCAFilePlayer

func (*DCAFilePlayer) Play

func (p *DCAFilePlayer) Play(sendChan chan []byte, done chan struct{}, stop chan struct{}, pause chan bool, resume chan bool) error

type OGGFileSoundReceiver

type OGGFileSoundReceiver struct {
	Path string
	// contains filtered or unexported fields
}

func NewOGGFileSoundReceiver

func NewOGGFileSoundReceiver(path string) (*OGGFileSoundReceiver, error)

func (*OGGFileSoundReceiver) After

func (osr *OGGFileSoundReceiver) After()

func (*OGGFileSoundReceiver) Before

func (osr *OGGFileSoundReceiver) Before()

func (*OGGFileSoundReceiver) HandleOpusPacket

func (osr *OGGFileSoundReceiver) HandleOpusPacket(p discordgo.Packet, done chan struct{})

type StreamPlayer

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

func NewStreamPlayer

func NewStreamPlayer(dlLink string) *StreamPlayer

func (*StreamPlayer) Play

func (ytp *StreamPlayer) Play(sendChan chan []byte, done chan struct{}, stop chan struct{}, pause chan bool, resume chan bool) error

Jump to

Keyboard shortcuts

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