sound

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2021 License: Apache-2.0 Imports: 10 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
}

func NewPlayer

func NewPlayer(soundFile string, soundVolume float64) *Player

Volume should be in range of -8..2 where 0 is unchanged system volume, -8 is barely audible, 2 is loud but not yet distorted much. Setting volume higher than 2 may be unpleasant

func (*Player) Play

func (p *Player) Play()

func (*Player) PlayLoop

func (p *Player) PlayLoop()

func (*Player) Stop

func (p *Player) Stop()

Jump to

Keyboard shortcuts

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