|
28 | 28 |
|
29 | 29 | #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
|
30 | 30 | Q_DECLARE_METATYPE(std::chrono::milliseconds)
|
31 |
| -Q_DECLARE_METATYPE(std::uint64_t) |
32 | 31 | #endif
|
33 | 32 |
|
34 | 33 | class SequencePlayer : public QObject
|
@@ -56,7 +55,7 @@ class SequencePlayer : public QObject
|
56 | 55 | int getPitchShift();
|
57 | 56 | int getVolumeFactor();
|
58 | 57 | void resetPosition();
|
59 |
| - void setPosition(std::uint64_t ticks); |
| 58 | + void setPosition(quint64 ticks); |
60 | 59 | void setPitchShift(unsigned int pitch);
|
61 | 60 | void setVolumeFactor(unsigned int vol);
|
62 | 61 | void allNotesOff();
|
@@ -90,7 +89,7 @@ public slots:
|
90 | 89 | void songStarted();
|
91 | 90 | void songFinished();
|
92 | 91 | void songStopped();
|
93 |
| - void songEchoTime(std::chrono::milliseconds millis, std::uint64_t ticks); |
| 92 | + void songEchoTime(std::chrono::milliseconds millis, quint64 ticks); |
94 | 93 | void volumeChanged(int channel, qreal newVolume);
|
95 | 94 | void mutedChanged(int channel, bool);
|
96 | 95 | void lockedChanged(int channel, bool);
|
@@ -123,8 +122,8 @@ private slots:
|
123 | 122 |
|
124 | 123 | Sequence m_song;
|
125 | 124 | drumstick::rt::MIDIOutput* m_port;
|
126 |
| - std::uint64_t m_songPositionTicks; |
127 |
| - std::uint64_t m_echoResolution; |
| 125 | + quint64 m_songPositionTicks; |
| 126 | + quint64 m_echoResolution; |
128 | 127 | bool m_loopEnabled;
|
129 | 128 | int m_loopStart;
|
130 | 129 | int m_loopEnd;
|
|
0 commit comments