X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Frenderer.h;h=11d2d3e8d0c788ca8b6cd9f655344f5a379eb69b;hb=43434c7ddde371a4948e981d9c89d8a873e954e4;hp=3fca05c8946d0c8f7662a35c3b7a3660c5de2c16;hpb=75881aec269354112a10b2aff6dc912b68fe0f3b;p=kdenlive diff --git a/src/renderer.h b/src/renderer.h index 3fca05c8..11d2d3e8 100644 --- a/src/renderer.h +++ b/src/renderer.h @@ -31,6 +31,7 @@ #include "gentime.h" #include "definitions.h" +#include "mlt/framework/mlt_types.h" #include @@ -187,7 +188,10 @@ Q_OBJECT public: void mltCutClip(int track, GenTime position); void mltInsertSpace(QMap trackClipStartList, QMap trackTransitionStartList, int track, const GenTime duration, const GenTime timeOffset); int mltGetSpaceLength(const GenTime pos, int track, bool fromBlankStart); + + /** @brief Returns the duration/length of @param track as reported by the track producer. */ int mltTrackDuration(int track); + bool mltResizeClipEnd(ItemInfo info, GenTime clipDuration); bool mltResizeClipStart(ItemInfo info, GenTime diff); bool mltResizeClipCrop(ItemInfo info, GenTime diff); @@ -271,6 +275,7 @@ private: Mlt::Profile *m_mltProfile; double m_framePosition; double m_fps; + bool m_externalConsumer; /** @brief True if we are playing a zone. * @@ -352,6 +357,8 @@ signals: void showAudioSignal(const QByteArray); /** @brief The renderer refreshed the current frame, but no seeking was done. */ void frameUpdated(QImage); + /** @brief This signal contains the audio of the current frame. */ + void audioSamplesSignal(const QVector&, int freq, int num_channels, int num_samples); public slots: