Documentation ¶
Overview ¶
Package mix combines sources into an output audio stream
Index ¶
- func ClearAllFires()
- func Configure(s spec.AudioSpec)
- func FireCount() int
- func GetCycleDurationTz() spec.Tz
- func GetNowAt() time.Duration
- func GetStartTime() time.Time
- func NextSample() []sample.Value
- func OutputClose()
- func OutputContinueTo(t time.Duration)
- func OutputStart(length time.Duration, out io.Writer)
- func SetCycleDuration(d time.Duration)
- func SetFire(source string, begin time.Duration, sustain time.Duration, volume float64, ...) *fire.Fire
- func SetSoundsPath(prefix string)
- func Spec() *spec.AudioSpec
- func StartAt(t time.Time)
- func Teardown()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCycleDurationTz ¶
GetCycleDurationTz returns the duration of a mix cycle.
func NextSample ¶
NextSample returns the next sample mixed in all channels
func OutputContinueTo ¶
OutputContinueTo to mix and output as []byte via stdout, up to a specified duration-since-start
func OutputStart ¶
OutputStart requires a known length
func SetCycleDuration ¶
GetCycleDurationTz sets the duration of a mix cycle.
func SetFire ¶
func SetFire(source string, begin time.Duration, sustain time.Duration, volume float64, pan float64) *fire.Fire
SetFire to represent a single audio source playing at a specific time in the future (in time.Duration from play start), with sustain time.Duration, volume from 0 to 1, and pan from -1 to +1
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.