Go-based FM stereo transmitter with RDS, Windows-first and cross-platform
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

40 строки
1.4KB

  1. package ingest
  2. import "time"
  3. type SourceStats struct {
  4. State string `json:"state"`
  5. Connected bool `json:"connected"`
  6. LastChunkAt time.Time `json:"lastChunkAt,omitempty"`
  7. LastMetaAt time.Time `json:"lastMetaAt,omitempty"`
  8. StreamTitle string `json:"streamTitle,omitempty"`
  9. MetadataUpdates uint64 `json:"metadataUpdates,omitempty"`
  10. IcyMetaInt int `json:"icyMetaInt,omitempty"`
  11. ChunksIn uint64 `json:"chunksIn"`
  12. SamplesIn uint64 `json:"samplesIn"`
  13. BufferedSeconds float64 `json:"bufferedSeconds"`
  14. Overflows uint64 `json:"overflows"`
  15. Underruns uint64 `json:"underruns"`
  16. Reconnects uint64 `json:"reconnects"`
  17. Discontinuities uint64 `json:"discontinuities"`
  18. TransportLoss uint64 `json:"transportLoss"`
  19. Reorders uint64 `json:"reorders"`
  20. JitterDepth int `json:"jitterDepth"`
  21. LastError string `json:"lastError,omitempty"`
  22. }
  23. type RuntimeStats struct {
  24. State string `json:"state"`
  25. Prebuffering bool `json:"prebuffering"`
  26. LastChunkAt time.Time `json:"lastChunkAt,omitempty"`
  27. DroppedFrames uint64 `json:"droppedFrames"`
  28. ConvertErrors uint64 `json:"convertErrors"`
  29. WriteBlocked bool `json:"writeBlocked"`
  30. }
  31. type Stats struct {
  32. Active SourceDescriptor `json:"active"`
  33. Source SourceStats `json:"source"`
  34. Runtime RuntimeStats `json:"runtime"`
  35. }