Documentation ¶
Overview ¶
Package sdlaudio provides the Audio type. The Audio type implements the AudioMixer interface using SDL and is suitable for use with any SDL presenation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Audio ¶
type Audio struct { Prefs *Preferences // contains filtered or unexported fields }
Audio outputs sound using SDL.
func (*Audio) MoreAudio ¶ added in v0.15.0
SetAudio implements the protocol.RealtimeAudioMixer interface.
type Preferences ¶ added in v0.14.0
type Preferences struct { Stereo prefs.Bool Discrete prefs.Bool Separation prefs.Int // contains filtered or unexported fields }
func NewPreferences ¶ added in v0.14.0
func NewPreferences() (*Preferences, error)
NewPreferences is the preferred method of initialisation for the Preferences type.
func (*Preferences) Load ¶ added in v0.14.0
func (p *Preferences) Load() error
Load disassembly preferences and apply to the current disassembly.
func (*Preferences) Save ¶ added in v0.14.0
func (p *Preferences) Save() error
Save current disassembly preferences to disk.
func (*Preferences) SetDefaults ¶ added in v0.14.0
func (p *Preferences) SetDefaults()
SetDefaults reverts all audio settings to default values.
func (*Preferences) String ¶ added in v0.14.0
func (p *Preferences) String() string
Click to show internal directories.
Click to hide internal directories.