diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index feb74cea3..3d16cedee 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -351,13 +351,6 @@ jobs: $DOWNLOAD_TOOL https://github.com/arl/macdeployqtfix/raw/master/macdeployqtfix.py python2 macdeployqtfix.py $BUNDLE_NAME/Contents/MacOS/Olive $DEP_LOCATION - # Crashpad symbols - $DEP_LOCATION/bin/dump_syms $BUNDLE_NAME/Contents/MacOS/Olive > Olive.sym - SYM_HEADER=($(head -n 1 Olive.sym)) # Read first line of symbol file - SYM_DIR=$BUNDLE_NAME/Contents/Resources/symbols/Olive/${SYM_HEADER[3]} - mkdir -p "$SYM_DIR" - mv Olive.sym "$SYM_DIR" - # Manual fixes cp $DEP_LOCATION/lib/libopentimelineio.dylib $BUNDLE_NAME/Contents/Frameworks cp $DEP_LOCATION/lib/libopentime.dylib $BUNDLE_NAME/Contents/Frameworks @@ -367,6 +360,13 @@ jobs: install_name_tool -change libmodplug.dylib @rpath/libmodplug.dylib $BUNDLE_NAME/Contents/Frameworks/libavformat.* install_name_tool -change libmodplug.dylib @rpath/libmodplug.dylib $BUNDLE_NAME/Contents/Frameworks/libavfilter.* + # Crashpad symbols + $DEP_LOCATION/bin/dump_syms $BUNDLE_NAME/Contents/MacOS/Olive > Olive.sym + SYM_HEADER=($(head -n 1 Olive.sym)) # Read first line of symbol file + SYM_DIR=$BUNDLE_NAME/Contents/Resources/symbols/Olive/${SYM_HEADER[3]} + mkdir -p "$SYM_DIR" + mv Olive.sym "$SYM_DIR" + - name: Deploy Packages working-directory: ${{ runner.workspace }}/build shell: bash diff --git a/app/audio/audiomanager.cpp b/app/audio/audiomanager.cpp index d4716a7f9..a3ff8c4e8 100644 --- a/app/audio/audiomanager.cpp +++ b/app/audio/audiomanager.cpp @@ -28,6 +28,18 @@ namespace olive { AudioManager* AudioManager::instance_ = nullptr; +QString AudioManager::GetAudioBackendName(AudioManager::Backend b) +{ + switch (b) { + case kAudioBackendQt: + return tr("Qt"); + case kAudioBackendCount: + break; + } + + return tr("Unknown"); +} + void AudioManager::CreateInstance() { if (instance_ == nullptr) { diff --git a/app/audio/audiomanager.h b/app/audio/audiomanager.h index 26503e26c..3e159d255 100644 --- a/app/audio/audiomanager.h +++ b/app/audio/audiomanager.h @@ -44,6 +44,13 @@ class AudioManager : public QObject { Q_OBJECT public: + enum Backend { + kAudioBackendQt, + kAudioBackendCount + }; + + static QString GetAudioBackendName(Backend b); + static void CreateInstance(); static void DestroyInstance(); diff --git a/app/common/CMakeLists.txt b/app/common/CMakeLists.txt index 7f4d1fd76..83880359c 100644 --- a/app/common/CMakeLists.txt +++ b/app/common/CMakeLists.txt @@ -38,6 +38,7 @@ set(OLIVE_SOURCES common/functiontimer.h common/lerp.h common/memorypool.cpp + common/otioutils.h common/memorypool.h common/ocioutils.cpp common/ocioutils.h diff --git a/app/common/commandlineparser.cpp b/app/common/commandlineparser.cpp index 7013276cd..d2e1b070b 100644 --- a/app/common/commandlineparser.cpp +++ b/app/common/commandlineparser.cpp @@ -34,11 +34,11 @@ CommandLineParser::~CommandLineParser() } } -const CommandLineParser::Option *CommandLineParser::AddOption(const QStringList &strings, const QString &description, bool takes_arg, const QString &arg_placeholder) +const CommandLineParser::Option *CommandLineParser::AddOption(const QStringList &strings, const QString &description, bool takes_arg, const QString &arg_placeholder, bool hidden) { Option* o = new Option(); - options_.append({strings, description, o, takes_arg, arg_placeholder}); + options_.append({strings, description, o, takes_arg, arg_placeholder, hidden}); return o; } @@ -140,6 +140,10 @@ void CommandLineParser::PrintHelp(const char* filename) printf("Usage: %s [options] %s\n\n", basename, positional_args.toUtf8().constData()); foreach (const KnownOption& o, options_) { + if (o.hidden) { + continue; + } + QString all_args; for (int i=0; i