Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Player ¶ added in v0.0.2
type Player struct {
Initialized bool
}
Player represents a struct with methods for playing audio
func NewPlayer ¶ added in v0.0.2
func NewPlayer() *Player
NewPlayer tries to initialize SDL2 Audio and returns a Player struct
func (*Player) Close ¶ added in v0.0.2
func (player *Player) Close()
Close calls sdl.Quit and sets the Player struct as uninitialized
Click to show internal directories.
Click to hide internal directories.