fileplayback

package
v0.0.0-...-e84cb67 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2026 License: GPL-2.0 Imports: 9 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
}

Player handles file playback and mixing with microphone audio

func New

func New(client *gumble.Client) *Player

New creates a new file player

func (*Player) GetAudioFrame

func (p *Player) GetAudioFrame() []int16

GetAudioFrame returns the next audio frame from the file, or nil if no file is playing

func (*Player) IsPlaying

func (p *Player) IsPlaying() bool

IsPlaying returns true if a file is currently playing

func (*Player) PlayFile

func (p *Player) PlayFile(filename string) error

PlayFile starts playing a file

func (*Player) SetErrorFunc

func (p *Player) SetErrorFunc(f func(error))

SetErrorFunc sets the error callback function

func (*Player) Stop

func (p *Player) Stop() error

Stop stops the currently playing file

Jump to

Keyboard shortcuts

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