player

package
v0.0.0-...-b39ccf7 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2022 License: BSD-2-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CHANNELS    = 2
	SAMPLE_RATE = 48000
	FRAME_SIZE  = SAMPLE_RATE / 50
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Player

type Player struct {
	Playing       bool
	Time          time.Duration
	Song          *music.Song
	Voice         *discordgo.VoiceConnection
	FinishHandler func()
	// contains filtered or unexported fields
}

func (*Player) FastForward

func (p *Player) FastForward(seconds float64)

func (*Player) Pause

func (p *Player) Pause()

func (*Player) PlaySong

func (p *Player) PlaySong(song *music.Song)

func (*Player) Resume

func (p *Player) Resume()

func (*Player) Seek

func (p *Player) Seek(seconds float64)

func (*Player) Stop

func (p *Player) Stop()

Jump to

Keyboard shortcuts

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