audio

package
v0.0.0-...-c5d59ff Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Audio

type Audio struct {
	*audio_source.AudioSource
}

Audio is used to define the state of audio playback for a single source of audio data.

func (*Audio) ExportToLua

func (a *Audio) ExportToLua(state *lua.LState, table *lua.LTable) *lua.LTable

ExportToLua exports the factory to a lua table using the given lua state machine and lua table

func (*Audio) New

func (*Audio) New() akara.Component

New returns a Audio component.

type Component

type Component = Audio // Component is an alias to Audio

type ComponentFactory

type ComponentFactory struct {
	*akara.ComponentFactory
}

ComponentFactory is a wrapper for the generic component factory.

func (*ComponentFactory) Add

func (m *ComponentFactory) Add(id akara.EID) *Audio

Add adds an Audio component to the given entity and returns it

func (*ComponentFactory) ExportToLua

func (m *ComponentFactory) ExportToLua(state *lua.LState, table *lua.LTable) *lua.LTable

ExportToLua exports the factory to a lua table using the given lua state machine and lua table

func (*ComponentFactory) Get

func (m *ComponentFactory) Get(id akara.EID) (*Audio, bool)

Get returns the Audio component for the given entity, and a bool for whether not it exists

Jump to

Keyboard shortcuts

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