2 #include <Media/AudioArray.hpp>
3 #include <Media/MediaFileHandle.hpp>
5 #include <score/tools/Debug.hpp>
11 #include <score_plugin_media_export.h>
17 namespace Media::Sound
20 struct WaveformComputerImpl;
24 std::shared_ptr<AudioFile> file;
29 double devicePixelRatio{};
65 E_SIGNAL(SCORE_PLUGIN_MEDIA_EXPORT, recompute, req);
68 E_SIGNAL(SCORE_PLUGIN_MEDIA_EXPORT, ready, img, wf);
74 void timerEvent(QTimerEvent* event)
override;
76 std::atomic_int64_t m_redraw_count = std::numeric_limits<int64_t>::lowest();
77 std::chrono::steady_clock::time_point last_request = std::chrono::steady_clock::now();
78 std::chrono::steady_clock::time_point last_render = {};
79 bool m_forceRedraw =
false;
84 int64_t m_processed_n{-1};
86 std::shared_ptr<AudioFile> m_currentFile;
88 std::atomic_bool m_abort{};
117 W_REGISTER_ARGTYPE(QVector<QImage>)
118 Q_DECLARE_METATYPE(QVector<QImage*>)
119 W_REGISTER_ARGTYPE(QVector<QImage*>)
Definition: TimeValue.hpp:21