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

36 строки
1.2KB

  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. ChunksIn uint64 `json:"chunksIn"`
  8. SamplesIn uint64 `json:"samplesIn"`
  9. BufferedSeconds float64 `json:"bufferedSeconds"`
  10. Overflows uint64 `json:"overflows"`
  11. Underruns uint64 `json:"underruns"`
  12. Reconnects uint64 `json:"reconnects"`
  13. Discontinuities uint64 `json:"discontinuities"`
  14. TransportLoss uint64 `json:"transportLoss"`
  15. Reorders uint64 `json:"reorders"`
  16. JitterDepth int `json:"jitterDepth"`
  17. LastError string `json:"lastError,omitempty"`
  18. }
  19. type RuntimeStats struct {
  20. State string `json:"state"`
  21. Prebuffering bool `json:"prebuffering"`
  22. LastChunkAt time.Time `json:"lastChunkAt,omitempty"`
  23. DroppedFrames uint64 `json:"droppedFrames"`
  24. ConvertErrors uint64 `json:"convertErrors"`
  25. WriteBlocked bool `json:"writeBlocked"`
  26. }
  27. type Stats struct {
  28. Active SourceDescriptor `json:"active"`
  29. Source SourceStats `json:"source"`
  30. Runtime RuntimeStats `json:"runtime"`
  31. }