11#pragma once
22
3- #include " audio/frame.h"
4- #include " audio/types.h"
53#include " control/controlproxy.h"
64#include " engine/channels/enginechannel.h"
7- #include " track/track_decl .h"
5+ #include " library/autodj/ track/trackordeckattributes .h"
86
97class BaseTrackPlayer ;
108
119// / Exposes the attributes of the track loaded in a certain player deck.
12- class DeckAttributes : public QObject {
10+ class DeckAttributes : public TrackOrDeckAttributes {
1311 Q_OBJECT
1412 public:
1513 // / Special value for startPos that indicates the deck
@@ -44,7 +42,7 @@ class DeckAttributes : public QObject {
4442 m_play.set (1.0 );
4543 }
4644
47- double playPosition () const {
45+ double playPosition () const override {
4846 return m_playPos.get ();
4947 }
5048
@@ -60,35 +58,35 @@ class DeckAttributes : public QObject {
6058 m_repeat.set (enabled ? 1.0 : 0.0 );
6159 }
6260
63- mixxx::audio::FramePos introStartPosition () const {
61+ mixxx::audio::FramePos introStartPosition () const override {
6462 return mixxx::audio::FramePos::fromEngineSamplePosMaybeInvalid (m_introStartPos.get ());
6563 }
6664
67- mixxx::audio::FramePos introEndPosition () const {
65+ mixxx::audio::FramePos introEndPosition () const override {
6866 return mixxx::audio::FramePos::fromEngineSamplePosMaybeInvalid (m_introEndPos.get ());
6967 }
7068
71- mixxx::audio::FramePos outroStartPosition () const {
69+ mixxx::audio::FramePos outroStartPosition () const override {
7270 return mixxx::audio::FramePos::fromEngineSamplePosMaybeInvalid (m_outroStartPos.get ());
7371 }
7472
75- mixxx::audio::FramePos outroEndPosition () const {
73+ mixxx::audio::FramePos outroEndPosition () const override {
7674 return mixxx::audio::FramePos::fromEngineSamplePosMaybeInvalid (m_outroEndPos.get ());
7775 }
7876
79- mixxx::audio::SampleRate sampleRate () const {
77+ mixxx::audio::SampleRate sampleRate () const override {
8078 return mixxx::audio::SampleRate::fromDouble (m_sampleRate.get ());
8179 }
8280
83- mixxx::audio::FramePos trackEndPosition () const {
81+ mixxx::audio::FramePos trackEndPosition () const override {
8482 return mixxx::audio::FramePos::fromEngineSamplePosMaybeInvalid (m_trackSamples.get ());
8583 }
8684
87- double rateRatio () const {
85+ double rateRatio () const override {
8886 return m_rateRatio.get ();
8987 }
9088
91- TrackPointer getLoadedTrack () const ;
89+ TrackPointer getLoadedTrack () const override ;
9290
9391 signals:
9492 void playChanged (DeckAttributes* pDeck, bool playing);
0 commit comments