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 ¶
This section is empty.
Functions ¶
func Init ¶
func Init(rate int32)
Init initializes the audio package. It opens the AL devices, sets the number of buffers, the volume and the source.
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.