sound

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MagneticCityMemories io.ReadSeeker
View Source
var MeddlesomeTheory io.ReadSeeker
View Source
var ObsessiveMechanics io.ReadSeeker

Functions

func Load

func Load(filesys *embed.FS) error

func RequestBGM

func RequestBGM(stream io.ReadSeeker)

func RequestFadeOut

func RequestFadeOut()

func SetBGMFadeSpeed

func SetBGMFadeSpeed(speed float64)

func SetObssessiveShortLoop

func SetObssessiveShortLoop(active bool)

func Update

func Update()

Types

type Looper

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

func NewLooper

func NewLooper(stream io.ReadSeeker, loopStart int64, loopEnd int64) *Looper

func (*Looper) AdjustLoop added in v0.0.3

func (self *Looper) AdjustLoop(loopStart, loopEnd int64)

func (*Looper) GetLoopEnd added in v0.0.3

func (self *Looper) GetLoopEnd() int64

func (*Looper) GetLoopPoints added in v0.0.3

func (self *Looper) GetLoopPoints() (int64, int64)

func (*Looper) GetLoopStart added in v0.0.3

func (self *Looper) GetLoopStart() int64

func (*Looper) GetPosition added in v0.0.3

func (self *Looper) GetPosition() int64

func (*Looper) Length added in v0.0.3

func (self *Looper) Length() int64

func (*Looper) Read

func (self *Looper) Read(buffer []byte) (int, error)

func (*Looper) Reset

func (self *Looper) Reset(stream io.ReadSeeker, loopStart int64, loopEnd int64)

hack to be compatible with bindless

func (*Looper) Seek

func (self *Looper) Seek(offset int64, whence int) (int64, error)

type SfxPlayer added in v0.0.2

type SfxPlayer struct {
	// contains filtered or unexported fields
}
var SfxAbility *SfxPlayer
var SfxClick *SfxPlayer
var SfxNav *SfxPlayer
var SfxNope *SfxPlayer
var SfxTileNav *SfxPlayer
var SfxTypeA *SfxPlayer

to play sfx, use sound.SfxNav.Play() or similar

var SfxTypeB *SfxPlayer
var SfxTypeC *SfxPlayer

func NewSfxPlayer added in v0.0.2

func NewSfxPlayer(context *audio.Context, bytes []byte) *SfxPlayer

func (*SfxPlayer) Play added in v0.0.3

func (self *SfxPlayer) Play()

func (*SfxPlayer) SetVolume added in v0.0.3

func (self *SfxPlayer) SetVolume(volume float64)

type StdAudioStream added in v0.0.3

type StdAudioStream interface {
	Length() int64
	io.ReadSeeker
}

hack to be compatible with bindless

Jump to

Keyboard shortcuts

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