audio

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2021 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Audio

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

Audio structure

func New

func New(url string, channel int) (*Audio, error)

New create a new object

func (*Audio) Close

func (A *Audio) Close() error

Close sdl objects

func (*Audio) Init

func (A *Audio) Init(r *sdl.Renderer) error

Init audio object

func (Audio) IsInit

func (A Audio) IsInit() bool

IsInit return status initialize

func (*Audio) Play

func (A *Audio) Play(wg *sync.WaitGroup, r *sdl.Renderer)

Play the audio source.

Jump to

Keyboard shortcuts

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