Audio #1

Merged
itten merged 11 commits from audio into main 2026-09-16 23:50:47 +03:00
Showing only changes of commit f37f480925 - Show all commits
+3 -3
View File
@@ -83,7 +83,7 @@ func printUsage() {
fmt.Fprintln(os.Stderr, "Try 'mxl-gen -h' for more information.")
}
func checkArgs(args appArgs) {
func checkArgs(args *appArgs) {
printUsageAndExit := func() {
printUsage()
os.Exit(2)
@@ -274,7 +274,7 @@ func flagSetAddFlags(fs *pflag.FlagSet, args *appArgs) {
fs.StringVarP(&args.videoFlowDefFile, "video", "v", "", "Video flow definition JSON file path")
fs.StringVarP(&args.audioFlowDefFile, "audio", "a", "", "Audio flow definition JSON file path [TODO]")
// Video pattern flags
fs.StringVarP(&args.pattern, "pattern", "p", "bars", "Video pattern type")
fs.StringVarP(&args.pattern, "pattern", "p", "ebu75", "Video pattern type")
fs.BoolVar(&args.listPatterns, "list-patterns", false, "List video available video patterns and exit")
fs.StringVarP(&args.textOverlay, "text", "t", "", "Text overlay above video pattern. Ignored if text-pos set")
@@ -328,7 +328,7 @@ func main() {
listPatterns(os.Stderr)
return
}
checkArgs(args)
checkArgs(&args)
type videoInfo struct {
uuid string