mirror of
https://gitlab.crans.org/nounous/ghostream.git
synced 2024-12-22 23:12:20 +00:00
21 lines
495 B
Go
21 lines
495 B
Go
// Package transcoder manages transcoders
|
|
package transcoder
|
|
|
|
import (
|
|
"gitlab.crans.org/nounous/ghostream/stream"
|
|
"gitlab.crans.org/nounous/ghostream/transcoder/audio"
|
|
"gitlab.crans.org/nounous/ghostream/transcoder/text"
|
|
)
|
|
|
|
// Options holds text package configuration
|
|
type Options struct {
|
|
Text text.Options
|
|
Audio audio.Options
|
|
}
|
|
|
|
// Init all transcoders
|
|
func Init(streams map[string]*stream.Stream, cfg *Options) {
|
|
go text.Init(streams, &cfg.Text)
|
|
go audio.Init(streams, &cfg.Audio)
|
|
}
|