Documentation

Overview

Package fire model an audio source playing at a specific time

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fire

type Fire struct {
	/* setup */
	BeginTz spec.Tz
	EndTz   spec.Tz
	Source  string
	Volume  float64 // 0 to 1
	Pan     float64 // -1 to +1
	// contains filtered or unexported fields
}

Fire represents a single audio source playing at a specific time in the future.

func New

func New(source string, beginTz spec.Tz, endTz spec.Tz, volume float64, pan float64) *Fire

New Fire to represent a single audio source playing at a specific time in the future.

func (*Fire) At

func (f *Fire) At(at spec.Tz) (t spec.Tz)

At the series of Tz it's playing for, return the series of Tz corresponding to source audio.

func (*Fire) IsAlive

func (f *Fire) IsAlive() bool

IsAlive the Fire?

func (*Fire) IsPlaying

func (f *Fire) IsPlaying() bool

IsPlaying the Fire?

func (*Fire) Teardown

func (f *Fire) Teardown()

Teardown the Fire and release its memory

Source Files