audio

package
v0.0.0-...-6aa7f09 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

README

Audio preface

How will this work, create a system that contains the audio context and Entity handle mechanisms, when an entity is added the system will check if it is has the specific components i.e:

  • "AudioListener" to be placed in cameras
  • "AudioSource" to be placed in whatever emits a sound

TODO

Create a positional audio processor that redirects volume to specific channels i.e:

  • output is 2 channels do left and right + some pass filter on back
  • output is 4 channels redirect volume based on orientation and distance

Documentation

Overview

Package audio implements audio system

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func System

func System(g *gorge.Context)

System initializes the audio system.

Types

type Audio

type Audio struct {
	// contains filtered or unexported fields
}

Audio struct state for tracked playing audio clips, effects stack etc

func (*Audio) HandleEvent

func (s *Audio) HandleEvent(ee event.Event)

HandleEvent implements the eventhandler.

type Context

type Context struct {
	// contains filtered or unexported fields
}

Context to be used on func binders

func FromContext

func FromContext(g *gorge.Context) *Context

FromContext returns an audio context from a gorge.Context.

type Processor

type Processor struct {
	// contains filtered or unexported fields
}

Processor processes an audio source

func (*Processor) Run

func (p *Processor) Run()

Run the audio processor in the background.

Directories

Path Synopsis
Package proc audio processors
Package proc audio processors

Jump to

Keyboard shortcuts

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