sdlaudio

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2020 License: GPL-3.0, GPL-3.0 Imports: 4 Imported by: 0

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 {
	// contains filtered or unexported fields
}

Audio outputs sound using SDL.

func NewAudio

func NewAudio() (*Audio, error)

NewAudio is the preferred method of initialisatoin for the Audio Type.

func (*Audio) EndMixing

func (aud *Audio) EndMixing() error

EndMixing implements the television.AudioMixer interface.

func (*Audio) SetAudio

func (aud *Audio) SetAudio(audioData uint8) error

SetAudio implements the television.AudioMixer interface.

Jump to

Keyboard shortcuts

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