Documentation
¶
Index ¶
- Variables
- func GetPlayingPlayer(sound_path string) *audio.Player
- func Init()
- func LoadSoundPath(path string)
- func Play(sound_path string)
- func PlayAt(sound_path string, x, y float64)
- func PlayBytes(bytes []byte)
- func PlayBytesAtPosition(bytes []byte, x, y float64)
- func SetCameraPos(x, y float64)
- func SetVolume(volume float64)
- type MixedAudioPlayer
- type MixedAudioPlayerBackend
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Sounds map[string][]byte FileSystem = os.DirFS(".") )
Functions ¶
func GetPlayingPlayer ¶
func LoadSoundPath ¶
func LoadSoundPath(path string)
func PlayBytesAtPosition ¶
func SetCameraPos ¶
func SetCameraPos(x, y float64)
Types ¶
type MixedAudioPlayer ¶
type MixedAudioPlayer struct {
// contains filtered or unexported fields
}
func NewMixedAudioPlayer ¶
func NewMixedAudioPlayer(bytes []byte) *MixedAudioPlayer
func (MixedAudioPlayer) Play ¶
func (player MixedAudioPlayer) Play()
func (MixedAudioPlayer) Rewind ¶
func (player MixedAudioPlayer) Rewind()
func (MixedAudioPlayer) SetPosition ¶
func (player MixedAudioPlayer) SetPosition(x, y float64)
type MixedAudioPlayerBackend ¶
type MixedAudioPlayerBackend struct {
// contains filtered or unexported fields
}
func (MixedAudioPlayerBackend) Play ¶
func (player MixedAudioPlayerBackend) Play()
func (MixedAudioPlayerBackend) Rewind ¶
func (player MixedAudioPlayerBackend) Rewind()
func (MixedAudioPlayerBackend) SetPosition ¶
func (player MixedAudioPlayerBackend) SetPosition(x, y float64)
func (MixedAudioPlayerBackend) SetVolume ¶
func (player MixedAudioPlayerBackend) SetVolume(volume float64)
Click to show internal directories.
Click to hide internal directories.