19 #ifndef AUDIOLEVELSTASK_H
20 #define AUDIOLEVELSTASK_H
22 #include "multitrackmodel.h"
24 #include <MltProducer.h>
25 #include <MltProfile.h>
27 #include <QPersistentModelIndex>
30 class AudioLevelsTask :
public QRunnable
33 AudioLevelsTask(Mlt::Producer &producer, QObject *
object,
const QModelIndex &index);
34 virtual ~AudioLevelsTask();
35 static void start(Mlt::Producer &producer,
37 const QModelIndex &index,
39 static void closeAll();
40 bool operator==(AudioLevelsTask &b);
46 Mlt::Producer *tempProducer();
50 typedef QPair<Mlt::Producer *, QPersistentModelIndex> ProducerAndIndex;
51 QList<ProducerAndIndex> m_producers;
52 QScopedPointer<Mlt::Producer> m_tempProducer;
55 Mlt::Profile m_profile;