]> git.sesse.net Git - kdenlive/blobdiff - testingArea/audioStreamInfo.h
Volume envelope calculation
[kdenlive] / testingArea / audioStreamInfo.h
diff --git a/testingArea/audioStreamInfo.h b/testingArea/audioStreamInfo.h
new file mode 100644 (file)
index 0000000..92d9e43
--- /dev/null
@@ -0,0 +1,44 @@
+/***************************************************************************
+ *   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 AUDIOSTREAMINFO_H
+#define AUDIOSTREAMINFO_H
+
+#include <mlt++/Mlt.h>
+#include <QString>
+
+class AudioStreamInfo
+{
+public:
+    AudioStreamInfo(Mlt::Producer *producer, int audioStreamIndex);
+    ~AudioStreamInfo();
+
+    int streamIndex() const;
+    int samplingRate() const;
+    int channels() const;
+    int bitrate() const;
+    const QString& codecName(bool longName = false) const;
+    const QString& samplingFormat() const;
+
+    void dumpInfo() const;
+
+private:
+    int m_audioStreamIndex;
+
+    int m_samplingRate;
+    int m_channels;
+    int m_bitRate;
+    QString m_codecName;
+    QString m_codecLongName;
+    QString m_samplingFormat;
+
+};
+
+#endif // AUDIOSTREAMINFO_H