diff options
author | Uwe Klotz <uklotz@mixxx.org> | 2020-03-21 11:28:54 +0100 |
---|---|---|
committer | Uwe Klotz <uklotz@mixxx.org> | 2020-03-30 11:32:18 +0200 |
commit | 829ec47831e22bb0afae953faaafd59e24aca608 (patch) | |
tree | 11a47e7052ead4ceac7b7cb038d10d3a589049d9 /src/mixxxapplication.cpp | |
parent | 6e66413614e1f8e5bdd0661bfa1350cea10f35d5 (diff) |
Add types for properties of PCM audio signals and streams
Diffstat (limited to 'src/mixxxapplication.cpp')
-rw-r--r-- | src/mixxxapplication.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/mixxxapplication.cpp b/src/mixxxapplication.cpp index 412c342cc1..51349d4ca5 100644 --- a/src/mixxxapplication.cpp +++ b/src/mixxxapplication.cpp @@ -4,6 +4,7 @@ #include "mixxxapplication.h" +#include "audio/types.h" #include "control/controlproxy.h" #include "library/crate/crateid.h" #include "soundio/soundmanagerutil.h" @@ -55,7 +56,16 @@ MixxxApplication::~MixxxApplication() { } void MixxxApplication::registerMetaTypes() { - // Register custom data types for signal processing + // Register custom data types + + // PCM audio types + qRegisterMetaType<mixxx::audio::ChannelCount>("mixxx::audio::ChannelCount"); + qRegisterMetaType<mixxx::audio::OptionalChannelLayout>("mixxx::audio::OptionalChannelLayout"); + qRegisterMetaType<mixxx::audio::OptionalSampleLayout>("mixxx::audio::OptionalSampleLayout"); + qRegisterMetaType<mixxx::audio::SampleRate>("mixxx::audio::SampleRate"); + qRegisterMetaType<mixxx::audio::Bitrate>("mixxx::audio::Bitrate"); + + // TrackId qRegisterMetaType<TrackId>(); qRegisterMetaType<QSet<TrackId>>(); qRegisterMetaType<QList<TrackId>>(); |