Documentation ¶
Overview ¶
Package audio uses OpenAL to play game audio by exposing the two audio callbacks Sample and SampleBatch for the libretro implementation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Effects map[string]*Effect
Effects are sound effects
Functions ¶
func Reconfigure ¶ added in v0.8.7
func Reconfigure(r int32)
Reconfigure initializes the audio package. It sets the number of buffers, the volume and the source for the games.
func Sample ¶
Sample renders a single audio frame. It is passed as a callback to the libretro implementation.
func SampleBatch ¶
SampleBatch renders multiple audio frames in one go It is passed as a callback to the libretro implementation.
func SetEffectsVolume ¶ added in v0.8.7
func SetEffectsVolume(vol float32)
SetEffectsVolume sets the audio volume of sound effects
Types ¶
type Effect ¶ added in v0.8.7
Effect is a static sound effect
func LoadEffect ¶ added in v0.8.7
LoadEffect loads a wav into memory and prepare the buffer and source in OpenAL
Click to show internal directories.
Click to hide internal directories.