|
- package fallback
-
- import (
- "context"
- "fmt"
- "io"
-
- "github.com/jan/fm-rds-tx/internal/ingest"
- "github.com/jan/fm-rds-tx/internal/ingest/decoder"
- )
-
- type FFmpegDecoder struct{}
-
- func NewFFmpeg() *FFmpegDecoder { return &FFmpegDecoder{} }
-
- func (d *FFmpegDecoder) Name() string { return "ffmpeg-fallback" }
-
- func (d *FFmpegDecoder) DecodeStream(_ context.Context, _ io.Reader, _ decoder.StreamMeta, _ func(ingest.PCMChunk) error) error {
- return fmt.Errorf("%w: ffmpeg fallback decoder not wired yet", decoder.ErrUnsupported)
- }
|