/* * Copyright (C) 2019 Robin Gareus * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include #include #include #include #include "ardour/audioengine.h" #include "ardour/filename_extensions.h" #include "ardour/template_utils.h" #include "common.h" using namespace std; using namespace ARDOUR; using namespace SessionUtils; static void usage () { // help2man compatible format (standard GNU help-text) printf (UTILNAME " - create a new session from the commandline.\n\n"); printf ("Usage: " UTILNAME " [ OPTIONS ] [session-name]\n\n"); printf ("Options:\n\ -L, --list-templates List available templates and exit\n\ -h, --help Display this help and exit\n\ -m, --master-channels Master-bus channel count (default 2)\n\ -s, --samplerate Samplerate to use (default 48000)\n\ -t, --template