Documentation
¶
Overview ¶
* Copyright 2015 Outright Mental, Inc.
* Copyright 2015 Outright Mental, Inc.
* Copyright 2015 Outright Mental, Inc.
* Copyright 2015 Outright Mental, Inc.
Index ¶
- Constants
- func AudioCallback(userdata unsafe.Pointer, stream *C.Uint8, length C.int)
- func Configure(spec sdl.AudioSpec)
- func Debug(isOn bool)
- func SetFire(source string, begin time.Duration, sustain time.Duration, volume float64, ...)
- func Spec() *sdl.AudioSpec
- func Start()
- func StartAt(t time.Time)
- func Teardown()
- type Fire
- type FireStateEnum
- type Mixer
- func (m *Mixer) Debug(isOn bool)
- func (m *Mixer) Debugf(format string, args ...interface{})
- func (m *Mixer) Initialize()
- func (m *Mixer) NextOutput(byteSize int) []byte
- func (m *Mixer) SetFire(source string, begin time.Duration, sustain time.Duration, volume float64, ...)
- func (m *Mixer) Start()
- func (m *Mixer) StartAt(t time.Time)
- func (m *Mixer) Teardown()
- type Source
- type SourceStateEnum
- type Tz
Constants ¶
View Source
const VERSION = "0.0.1"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Fire ¶
type Fire struct {
/* setup */
BeginTz Tz
EndTz Tz
Source string
Volume float64
Pan float64
// contains filtered or unexported fields
}
func (*Fire) SetState ¶
func (f *Fire) SetState(state FireStateEnum)
func (*Fire) State ¶
func (f *Fire) State() FireStateEnum
type FireStateEnum ¶
type FireStateEnum uint
const ( FIRE_READY FireStateEnum = 1 FIRE_PLAY FireStateEnum = 2 // it can be assumed that all alive states are < SOURCE_FINISHED FIRE_DONE FireStateEnum = 6 )
type Mixer ¶
type Mixer struct {
// contains filtered or unexported fields
}
func (*Mixer) Initialize ¶
func (m *Mixer) Initialize()
func (*Mixer) NextOutput ¶
type Source ¶
type Source struct {
URL string
// contains filtered or unexported fields
}
func (*Source) State ¶
func (s *Source) State() SourceStateEnum
type SourceStateEnum ¶
type SourceStateEnum uint
const ( SOURCE_LOADING SourceStateEnum = 1 SOURCE_READY SourceStateEnum = 2 // it can be assumed that all alive states are < SOURCE_FINISHED SOURCE_FINISHED SourceStateEnum = 6 SOURCE_FAILED SourceStateEnum = 7 )
Click to show internal directories.
Click to hide internal directories.