audio

package
v0.2.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2019 License: GPL-3.0 Imports: 4 Imported by: 0

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

func Sample(left int16, right int16)

Sample renders a single audio frame. It is passed as a callback to the libretro implementation.

func SampleBatch

func SampleBatch(buf []byte, size int32) int32

SampleBatch renders multiple audio frames in one go It is passed as a callback to the libretro implementation.

func SetVolume

func SetVolume(vol float32)

SetVolume sets the audio volume

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL