Go-based FM stereo transmitter with RDS, Windows-first and cross-platform
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

38 řádky
1.2KB

  1. package ingest
  2. import "time"
  3. // PCMChunk is the ingest-internal normalized PCM unit before TX conversion.
  4. // Samples are interleaved per channel.
  5. type PCMChunk struct {
  6. Samples []int32
  7. Channels int
  8. SampleRateHz int
  9. Sequence uint64
  10. Timestamp time.Time
  11. SourceID string
  12. Discontinuity bool
  13. }
  14. type SourceDescriptor struct {
  15. ID string `json:"id"`
  16. Kind string `json:"kind"`
  17. Family string `json:"family"`
  18. Transport string `json:"transport"`
  19. Codec string `json:"codec"`
  20. Channels int `json:"channels"`
  21. SampleRateHz int `json:"sampleRateHz"`
  22. Detail string `json:"detail,omitempty"`
  23. Origin *SourceOrigin `json:"origin,omitempty"`
  24. }
  25. // SourceOrigin describes where an ingest source definition came from and
  26. // which endpoint it resolved to, so control/runtime can show provenance.
  27. type SourceOrigin struct {
  28. Kind string `json:"kind,omitempty"`
  29. Endpoint string `json:"endpoint,omitempty"`
  30. Mode string `json:"mode,omitempty"`
  31. StreamName string `json:"streamName,omitempty"`
  32. SDPPath string `json:"sdpPath,omitempty"`
  33. }