Documentation ¶
Index ¶
- type Entry
- type EntryCallback
- type Identifier
- type Queue
- func (q *Queue) AddHead(source audio.Source, startCallback, endCallback, removeCallback EntryCallback) (identifier Identifier)
- func (q *Queue) AddTail(source audio.Source, startCallback, endCallback, removeCallback EntryCallback) (identifier Identifier)
- func (q *Queue) Close()
- func (q *Queue) GetChannels() int
- func (q *Queue) GetQueue() (entries []*Entry)
- func (q *Queue) GetQueueEntry(identifier Identifier) (index int, entry *Entry)
- func (q *Queue) GetQueueHead() *Entry
- func (q *Queue) GetQueueIndex(index int) *Entry
- func (q *Queue) GetQueueSize() int
- func (q *Queue) GetQueueTail() (index int, entry *Entry)
- func (q *Queue) GetSampleRate() int
- func (q *Queue) GetSource() audio.Source
- func (q *Queue) IsClosed() bool
- func (q *Queue) Remove(identifier Identifier) bool
- func (q *Queue) Wait()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Entry struct { Identifier Identifier Source audio.Source ReadSamples atomic.Uint64 StartCallback EntryCallback EndCallback EntryCallback RemoveCallback EntryCallback // contains filtered or unexported fields }
func NewEntry ¶
func NewEntry(identifier Identifier, source audio.Source, cancel chan struct{}, start, end, remove EntryCallback) *Entry
type EntryCallback ¶
type Identifier ¶
type Identifier int
type Queue ¶
type Queue struct {
// contains filtered or unexported fields
}
func (*Queue) AddHead ¶
func (q *Queue) AddHead(source audio.Source, startCallback, endCallback, removeCallback EntryCallback) (identifier Identifier)
func (*Queue) AddTail ¶
func (q *Queue) AddTail(source audio.Source, startCallback, endCallback, removeCallback EntryCallback) (identifier Identifier)
func (*Queue) GetChannels ¶
func (*Queue) GetQueueEntry ¶
func (q *Queue) GetQueueEntry(identifier Identifier) (index int, entry *Entry)
func (*Queue) GetQueueHead ¶
func (*Queue) GetQueueIndex ¶
func (*Queue) GetQueueSize ¶
func (*Queue) GetQueueTail ¶
func (*Queue) GetSampleRate ¶
func (*Queue) Remove ¶
func (q *Queue) Remove(identifier Identifier) bool
Click to show internal directories.
Click to hide internal directories.