Documentation
¶
Overview ¶
Package ontomix is a sequence-based Go-native audio mixer
Package ontomix is a sequence-based Go-native audio mixer ¶
Package ontomix is a sequence-based Go-native audio mixer ¶
Package ontomix is a sequence-based Go-native audio mixer
Index ¶
- Constants
- func ClearAllFires()
- func Configure(spec bind.AudioSpec)
- func Debug(isOn bool)
- func FireCount() int
- func GetStartTime() time.Time
- func SetMixCycleDuration(d time.Duration)
- func SetSoundsPath(prefix string)
- func Spec() *bind.AudioSpec
- func Start()
- func StartAt(t time.Time)
- func Teardown()
- type Fire
- type Source
- type Tz
Constants ¶
const VERSION = "0.0.3"
VERSION # of this ontomix source code
Variables ¶
This section is empty.
Functions ¶
func ClearAllFires ¶ added in v0.0.3
func ClearAllFires()
ClearAllFires to clear all fires currently ready, or live
func FireCount ¶ added in v0.0.3
func FireCount() int
FireCount to check the number of fires currently scheduled for playback
func GetStartTime ¶ added in v0.0.2
GetStartTime the mixer was started at
func SetMixCycleDuration ¶ added in v0.0.3
Set the duration between "mix cycles", wherein garbage collection is performed.
Types ¶
type Fire ¶
type Fire struct {
/* setup */
BeginTz Tz
EndTz 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 SetFire ¶
func SetFire(source string, begin time.Duration, sustain time.Duration, volume float64, pan float64) *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
type Source ¶
type Source struct {
URL string
// contains filtered or unexported fields
}
Source stores a series of Samples in Channels across Time, for audio playback.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package bind is for modular binding of ontomix to audio interface Package bind has native Go WAV I/O Package bind is for modular binding of ontomix to audio interface Package bind is for modular binding of ontomix to audio interface Package bind is for modular binding of ontomix to audio interface Package bind is for modular binding of ontomix to audio interface
|
Package bind is for modular binding of ontomix to audio interface Package bind has native Go WAV I/O Package bind is for modular binding of ontomix to audio interface Package bind is for modular binding of ontomix to audio interface Package bind is for modular binding of ontomix to audio interface Package bind is for modular binding of ontomix to audio interface |