You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
558B

  1. package recorder
  2. import "sdr-visual-suite/internal/demod"
  3. type wfmHybridResult struct {
  4. Audio []float32
  5. AudioRate int
  6. Channels int
  7. RDS []float32
  8. RDSRate int
  9. }
  10. func demodWFMStereoHybrid(iq []complex64, sampleRate int, offset float64, bw float64) wfmHybridResult {
  11. audio, rate := demodAudioCPU(demod.Get("WFM_STEREO"), iq, sampleRate, offset, bw)
  12. rds := demod.RDSBasebandDecimated(iq, sampleRate)
  13. return wfmHybridResult{
  14. Audio: audio,
  15. AudioRate: rate,
  16. Channels: 2,
  17. RDS: rds.Samples,
  18. RDSRate: rds.SampleRate,
  19. }
  20. }