Wideband autonomous SDR analysis engine forked from sdr-visual-suite
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
327B

  1. package recorder
  2. import (
  3. "errors"
  4. "sdr-wideband-suite/internal/decoder"
  5. )
  6. func DecodeOnDemand(cmd string, iqPath string, sampleRate int, audioPath string) (decoder.Result, error) {
  7. if cmd == "" {
  8. return decoder.Result{}, errors.New("decoder command empty")
  9. }
  10. return decoder.Run(cmd, iqPath, sampleRate, audioPath)
  11. }