Documentation
¶
Index ¶
- type Channel
- func (ch *Channel) Enabled() bool
- func (ch *Channel) Gain() float32
- func (ch *Channel) Pan() float32
- func (ch *Channel) Read(samples *snd.Samples)
- func (ch *Channel) ReadStateless(samples *snd.Samples, freq float32, state *snd.NoteState)
- func (ch *Channel) SetEnabled(enabled bool)
- func (ch *Channel) SetGain(gain float32)
- func (ch *Channel) SetPan(pan float32)
- func (ch *Channel) SetReadable(r snd.Readable)
- type Mixer
- func (m *Mixer) Gain() float32
- func (m *Mixer) GetChannel() *Channel
- func (m *Mixer) Read(samples *snd.Samples)
- func (m *Mixer) ReadStateless(samples *snd.Samples, freq float32, state *snd.NoteState)
- func (m *Mixer) RemoveChannel(ch *Channel)
- func (m *Mixer) SetGain(gain float32)
- func (m *Mixer) SetOutput(out snd.Writable)
- func (m *Mixer) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel struct {
// contains filtered or unexported fields
}
Channel is a special volume and pan filter, which can be connected to a mixer
func NewChannel ¶
NewChannel creates a new Channel instance
func (*Channel) ReadStateless ¶
func (*Channel) SetEnabled ¶
func (*Channel) SetReadable ¶
type Mixer ¶
type Mixer struct {
// contains filtered or unexported fields
}
Mixer allows the mixing of different channels
func (*Mixer) GetChannel ¶
GetChannel returns a new channel connected to this Mixer
func (*Mixer) ReadStateless ¶
func (*Mixer) RemoveChannel ¶
RemoveChannel removes an existing channel from the mixer