]> git.sesse.net Git - kdenlive/blobdiff - testingArea/audioInfo.h
Volume envelope calculation
[kdenlive] / testingArea / audioInfo.h
diff --git a/testingArea/audioInfo.h b/testingArea/audioInfo.h
new file mode 100644 (file)
index 0000000..5a30fcd
--- /dev/null
@@ -0,0 +1,35 @@
+/***************************************************************************
+ *   Copyright (C) 2012 by Simon Andreas Eugster (simon.eu@gmail.com)      *
+ *   This file is part of kdenlive. See www.kdenlive.org.                  *
+ *                                                                         *
+ *   This program is free software; you can redistribute it and/or modify  *
+ *   it under the terms of the GNU General Public License as published by  *
+ *   the Free Software Foundation; either version 2 of the License, or     *
+ *   (at your option) any later version.                                   *
+ ***************************************************************************/
+
+#ifndef AUDIOINFO_H
+#define AUDIOINFO_H
+
+#include <QList>
+#include <mlt++/Mlt.h>
+
+class AudioStreamInfo;
+class AudioInfo
+{
+public:
+    AudioInfo(Mlt::Producer *producer);
+    ~AudioInfo();
+
+    int size() const;
+    AudioStreamInfo const* info(int pos) const;
+
+    void dumpInfo() const;
+
+private:
+    Mlt::Producer *m_producer;
+    QList<AudioStreamInfo*> m_list;
+
+};
+
+#endif // AUDIOINFO_H