player

package
v0.0.0-...-fd62f4b Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Player

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

func CreatePlayer

func CreatePlayer(filename string, buffer *[]int16) (p *Player)

func (*Player) ChangeSong

func (p *Player) ChangeSong(filename string)

func (*Player) GetStatus

func (p *Player) GetStatus() SongState

func (*Player) Pause

func (p *Player) Pause()

func (*Player) Play

func (p *Player) Play(stream *portaudio.Stream)

func (*Player) Stop

func (p *Player) Stop()

type SongState

type SongState int
const (
	Stopped SongState = iota
	Playing
	Paused
)

func (SongState) String

func (s SongState) String() string

Jump to

Keyboard shortcuts

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