sound

package
v0.0.0-...-af3ad01 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NewFromFile = newFromFile
)

Functions

This section is empty.

Types

type AudioFileType

type AudioFileType int
const (
	OggVorbisFile AudioFileType = iota
	WavFile
	Mp3File
	FlacFile
	UnknownAudioFile AudioFileType = math.MaxInt
)

func KnownAudioFileTypes

func KnownAudioFileTypes() []AudioFileType

func (AudioFileType) Extension

func (t AudioFileType) Extension() string

func (AudioFileType) Name

func (t AudioFileType) Name() string

type Sound

type Sound interface {
	Play() error
	Type() AudioFileType
	Location() string
}

Jump to

Keyboard shortcuts

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