audio

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAudioPipeline

func NewAudioPipeline(audioCache *AudioCache)

Types

type AudioCache

type AudioCache interface {
	LoadPlayer(file string)
	GetPlayer(file string) AudioPlayer
}

func NewAudioCache

func NewAudioCache() AudioCache

type AudioPlayer

type AudioPlayer interface {
	PlayOnce()
	PlayLooped()
	Stop()
	Pause()
	Unload()
	Load(fileName string) AudioPlayer
	IsStopped() bool
	IsPlaying() bool
}

func NewAudioPlayer

func NewAudioPlayer() AudioPlayer

Jump to

Keyboard shortcuts

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