audio

package
Version: v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2021 License: MIT Imports: 0 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 interface {
	NewSound(soundPath string) (Sound, error)
	SetVolume(volume float32) error
	Close() error
}

Player manages audio volume, channels, and overall playback.

type Sound

type Sound interface {
	Play() error
	Close() error
}

Sound is a single sound bite.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL