Documentation
¶
Overview ¶
Package audio plays BGM and sound effects. It should stay focused on decoding, volume, and playback; gameplay decisions about which sound to trigger belong in game.
Index ¶
- type BGM
- func (b *BGM) BGMVolume() float64
- func (b *BGM) Enabled() bool
- func (b *BGM) Play(string) error
- func (b *BGM) PlayMap(string) (string, error)
- func (b *BGM) PlaySFX(path string) (string, error)
- func (b *BGM) PlaySFXVolume(string, float64) (string, error)
- func (b *BGM) SFXVolume() float64
- func (b *BGM) SetBGMVolume(volume float64)
- func (b *BGM) SetEnabled(bool)
- func (b *BGM) SetSFXVolume(volume float64)
- func (b *BGM) SetVolume(volume float64)
- func (b *BGM) Stop()
- func (b *BGM) Volume() float64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BGM ¶
type BGM struct {
// contains filtered or unexported fields
}
func (*BGM) SetBGMVolume ¶
func (*BGM) SetEnabled ¶
func (*BGM) SetSFXVolume ¶
Click to show internal directories.
Click to hide internal directories.