Go-based FM stereo transmitter with RDS, Windows-first and cross-platform
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

27 lignes
667B

  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. }