2 #include <Audio/AudioInterface.hpp>
4 #include <score/plugins/ProjectSettings/ProjectSettingsModel.hpp>
5 #include <score/plugins/settingsdelegate/SettingsDelegateModel.hpp>
7 #include <score_plugin_audio_export.h>
11 namespace Audio::Settings
14 enum class ExternalTransport : int8_t
26 Audio::AudioFactory::ConcreteKey m_Driver{};
29 QStringList m_InputNames;
30 QStringList m_OutputNames;
43 bool m_AutoStereo{
true};
46 bool m_AutoConnect{
true};
49 ExternalTransport m_JackTransport{ExternalTransport::None};
54 void changed() E_SIGNAL(SCORE_PLUGIN_AUDIO_EXPORT, changed)
55 SCORE_SETTINGS_PARAMETER_HPP(
56 SCORE_PLUGIN_AUDIO_EXPORT, Audio::AudioFactory::ConcreteKey, Driver)
57 SCORE_SETTINGS_PARAMETER_HPP(SCORE_PLUGIN_AUDIO_EXPORT, QStringList, InputNames)
58 SCORE_SETTINGS_PARAMETER_HPP(SCORE_PLUGIN_AUDIO_EXPORT, QStringList, OutputNames)
59 SCORE_SETTINGS_PARAMETER_HPP(SCORE_PLUGIN_AUDIO_EXPORT, QString, CardIn)
60 SCORE_SETTINGS_PARAMETER_HPP(SCORE_PLUGIN_AUDIO_EXPORT, QString, CardOut)
61 SCORE_SETTINGS_PARAMETER_HPP(SCORE_PLUGIN_AUDIO_EXPORT,
int, BufferSize)
62 SCORE_SETTINGS_PARAMETER_HPP(SCORE_PLUGIN_AUDIO_EXPORT,
int, Rate)
63 SCORE_SETTINGS_PARAMETER_HPP(SCORE_PLUGIN_AUDIO_EXPORT,
int, DefaultIn)
64 SCORE_SETTINGS_PARAMETER_HPP(SCORE_PLUGIN_AUDIO_EXPORT,
int, DefaultOut)
65 SCORE_SETTINGS_PARAMETER_HPP(SCORE_PLUGIN_AUDIO_EXPORT,
bool, AutoStereo)
66 SCORE_SETTINGS_PARAMETER_HPP(SCORE_PLUGIN_AUDIO_EXPORT,
bool, AutoConnect)
67 SCORE_SETTINGS_PARAMETER_HPP(
68 SCORE_PLUGIN_AUDIO_EXPORT, Audio::Settings::ExternalTransport, JackTransport)
71 SCORE_SETTINGS_PARAMETER(
Model, Driver)
72 SCORE_SETTINGS_DEFERRED_PARAMETER(
Model, InputNames)
73 SCORE_SETTINGS_DEFERRED_PARAMETER(
Model, OutputNames)
74 SCORE_SETTINGS_DEFERRED_PARAMETER(
Model, CardIn)
75 SCORE_SETTINGS_DEFERRED_PARAMETER(
Model, CardOut)
76 SCORE_SETTINGS_DEFERRED_PARAMETER(
Model, BufferSize)
77 SCORE_SETTINGS_DEFERRED_PARAMETER(
Model, Rate)
78 SCORE_SETTINGS_DEFERRED_PARAMETER(
Model, DefaultIn)
79 SCORE_SETTINGS_DEFERRED_PARAMETER(
Model, DefaultOut)
80 SCORE_SETTINGS_DEFERRED_PARAMETER(
Model, AutoStereo)
81 SCORE_SETTINGS_DEFERRED_PARAMETER(
Model, AutoConnect)
82 SCORE_SETTINGS_DEFERRED_PARAMETER(
Model, JackTransport)
85 Q_DECLARE_METATYPE(Audio::Settings::ExternalTransport)
86 W_REGISTER_ARGTYPE(Audio::Settings::ExternalTransport)
87 #undef AUDIO_PARAMETER_HPP
Definition: score-plugin-audio/Audio/Settings/Model.hpp:22
Definition: SettingsDelegateModel.hpp:16
Used to access all the application-wide state and structures.
Definition: ApplicationContext.hpp:24