|
Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
|
To be used throughout the program. More...
#include <src/gui/backend/backend/zrythm.h>


Public Member Functions | |
| void | pre_init (std::optional< fs::path > exe_path, bool have_ui, bool optimized_dsp) |
| Called before init(). | |
| void | init () |
| zrythm::gui::old_dsp::plugins::PluginManager * | getPluginManager () const |
| QString | getVersion () const |
| void | init_user_dirs_and_files () |
| Initializes/creates the default dirs/files in the user directory. | |
| FileManager & | get_file_manager () |
| Public Member Functions inherited from zrythm::utils::QElapsedTimeProvider | |
| MonotonicTime | get_monotonic_time_nsecs () const override |
| MonotonicTime | get_monotonic_time_usecs () const override |
Static Public Member Functions | |
| static utils::Utf8String | get_version (bool with_v) |
| Returns the version string. | |
| static bool | is_release (bool official) |
| Returns whether the current Zrythm version is a release version. | |
| static void | fetch_latest_release_ver_async (networking::URL::GetContentsAsyncCallback callback) |
| static bool | is_latest_release (const char *remote_latest_release) |
| Returns whether the given release string is the latest release. | |
| static void | get_version_with_capabilities (char *buf, bool include_system_info) |
| Returns the version and the capabilities. | |
| static utils::Utf8String | get_system_info () |
| Returns system info (mainly used for bug reports). | |
Data Fields | |
| fs::path | exe_path_ |
| argv[0]. | |
| std::unique_ptr< Settings > | settings_ |
| Application settings. | |
| bool | opening_template_ = false |
| Whether the open file is a template to be used to create a new project from. | |
| bool | creating_project_ = false |
| Whether creating a new project, either from a template or blank. | |
| fs::path | create_project_path_ |
| Path to create a project in, including its title. | |
| fs::path | open_filename_ |
| Filename to open passed through the command line. | |
| FileManager | file_manager_ |
| File manager. | |
| Symap | symap_ |
| String interner for internal things. | |
| bool | debug_ = false |
| In debug mode or not (determined by GSetting). | |
| bool | break_on_error_ = false |
| Whether to abort() on an error log message. | |
| bool | generating_project_ = false |
| Whether this is a dummy instance used when generating projects. | |
| bool | have_ui_ = false |
| 1 if Zrythm has a UI, 0 if headless (eg, when unit-testing). | |
| bool | use_optimized_dsp_ = false |
| Whether to use optimized DSP when available. | |
| int | undo_stack_len_ = 0 |
| Undo stack length, used during tests. | |
| bool | open_newer_backup_ = false |
| Whether to open a newer backup if found. | |
| bool | use_pipewire_in_tests_ = false |
| Whether to use pipewire in tests. | |
| ProcessId | pipewire_pid_ = 0 |
| Process ID for pipewire (used in tests). | |
| std::unique_ptr< ChordPresetPackManager > | chord_preset_pack_manager_ |
| Chord preset pack manager. | |
| std::unique_ptr< zrythm::gui::old_dsp::plugins::PluginManager > | plugin_manager_ |
| Manages plugins (loading, instantiating, etc.). | |
| engine::session::RecordingManager * | recording_manager_ = nullptr |
| Recording manager. | |
| std::unique_ptr< Project > | project_ |
| Project data. | |
| std::unique_ptr< DspContextRAII > | lsp_dsp_context_ |
| LSP DSP context for the main thread. | |
| bool | benchmarking_ = false |
| Whether currently running under the benchmarker. | |
Properties | |
| QML_ELEMENT zrythm::gui::old_dsp::plugins::PluginManager * | pluginManager |
| QString | version |
To be used throughout the program.
Everything here should be global and function regardless of the project.
|
static |
| callback | A GAsyncReadyCallback to call when the request is satisfied. |
| callback_data | Data to pass to callback. |
|
inline |
|
static |
Returns the version string.
| with_v | Include a starting "v". |
|
static |
Returns the version and the capabilities.
| buf | Buffer to write the string to. |
| include_system_info | Whether to include additional system info (for bug reports). |
|
inline |
| void Zrythm::init_user_dirs_and_files | ( | ) |
Initializes/creates the default dirs/files in the user directory.
| ZrythmException | If an error occured. |
|
static |
Returns whether the current Zrythm version is a release version.
| void Zrythm::pre_init | ( | std::optional< fs::path > | exe_path, |
| bool | have_ui, | ||
| bool | optimized_dsp ) |
Called before init().
TODO: check if can be merged into init().
| have_ui | Whether Zrythm is instantiated with a UI (false if headless). |
| testing | Whether this is a unit test. |
| bool Zrythm::benchmarking_ = false |
| bool Zrythm::break_on_error_ = false |
| std::unique_ptr<ChordPresetPackManager> Zrythm::chord_preset_pack_manager_ |
| fs::path Zrythm::create_project_path_ |
| bool Zrythm::creating_project_ = false |
| bool Zrythm::debug_ = false |
| FileManager Zrythm::file_manager_ |
| bool Zrythm::generating_project_ = false |
| bool Zrythm::have_ui_ = false |
| std::unique_ptr<DspContextRAII> Zrythm::lsp_dsp_context_ |
| fs::path Zrythm::open_filename_ |
| bool Zrythm::open_newer_backup_ = false |
| bool Zrythm::opening_template_ = false |
| ProcessId Zrythm::pipewire_pid_ = 0 |
| std::unique_ptr<zrythm::gui::old_dsp::plugins::PluginManager> Zrythm::plugin_manager_ |
| std::unique_ptr<Project> Zrythm::project_ |
| engine::session::RecordingManager* Zrythm::recording_manager_ = nullptr |
| std::unique_ptr<Settings> Zrythm::settings_ |
| int Zrythm::undo_stack_len_ = 0 |
| bool Zrythm::use_optimized_dsp_ = false |
| bool Zrythm::use_pipewire_in_tests_ = false |
|
read |