]> git.sesse.net Git - kdenlive/blob - testingArea/audioStreamInfo.h
Audio alignment works.
[kdenlive] / testingArea / audioStreamInfo.h
1 /***************************************************************************
2  *   Copyright (C) 2012 by Simon Andreas Eugster (simon.eu@gmail.com)      *
3  *   This file is part of kdenlive. See www.kdenlive.org.                  *
4  *                                                                         *
5  *   This program is free software; you can redistribute it and/or modify  *
6  *   it under the terms of the GNU General Public License as published by  *
7  *   the Free Software Foundation; either version 2 of the License, or     *
8  *   (at your option) any later version.                                   *
9  ***************************************************************************/
10
11 #ifndef AUDIOSTREAMINFO_H
12 #define AUDIOSTREAMINFO_H
13
14 #include <mlt++/Mlt.h>
15 #include <QString>
16
17 class AudioStreamInfo
18 {
19 public:
20     AudioStreamInfo(Mlt::Producer *producer, int audioStreamIndex);
21     ~AudioStreamInfo();
22
23     int streamIndex() const;
24     int samplingRate() const;
25     int channels() const;
26     int bitrate() const;
27     const QString& codecName(bool longName = false) const;
28     const QString& samplingFormat() const;
29
30     void dumpInfo() const;
31
32 private:
33     int m_audioStreamIndex;
34
35     int m_samplingRate;
36     int m_channels;
37     int m_bitRate;
38     QString m_codecName;
39     QString m_codecLongName;
40     QString m_samplingFormat;
41
42 };
43
44 #endif // AUDIOSTREAMINFO_H