Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AudioOutput ¶
type AudioOutput interface { // Start receives a context and should run in a loop, terminating upon ctx closing or on any errors. Start(ctx context.Context) error // Receive returns a channel that receives tagged audio sample input. Receive() chan<- *types.TaggedAudioSampleFloat32 }
AudioOutput handles incoming tagged audio samples.
type ControlFrequency ¶
type ControlFrequency struct { SystemID int SystemType op25.SystemType Frequency int SymbolRate int // contains filtered or unexported fields }
func NewControlFrequency ¶
func NewControlFrequency( t *Turbine, sys *internalSystem, freq int, ) *ControlFrequency
type SystemManager ¶
type SystemManager struct { VMs map[int]*VoiceManager // contains filtered or unexported fields }
func NewSystemManager ¶
func NewSystemManager() *SystemManager
func (*SystemManager) VMForSystemID ¶
func (s *SystemManager) VMForSystemID(systemID int) *VoiceManager
type TurbineOption ¶
func WithImageServer ¶
func WithImageServer(vizServer *viz.Server) TurbineOption
func WithInfluxDB ¶
func WithInfluxDB(influxClient api.WriteAPI) TurbineOption
func WithLogger ¶
func WithLogger(logger zerolog.Logger) TurbineOption
type VoiceFrequency ¶
type VoiceManager ¶
type VoiceManager struct {
// contains filtered or unexported fields
}
func NewVoiceManager ¶
func NewVoiceManager(systemID int) *VoiceManager
func (*VoiceManager) TalkGroupForFrequency ¶
func (v *VoiceManager) TalkGroupForFrequency(freq int) *types.TalkGroup
func (*VoiceManager) TalkGroupForID ¶
func (v *VoiceManager) TalkGroupForID(id int) *types.TalkGroup
func (*VoiceManager) TalkGroupForSourceID ¶
func (v *VoiceManager) TalkGroupForSourceID(sid int) *types.TalkGroup
func (*VoiceManager) UpdateGroup ¶
func (v *VoiceManager) UpdateGroup(tgid, sourceID, freq int)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.