1 /***************************************************************************
2 * Copyright (C) 2012 by Simon Andreas Eugster (simon.eu@gmail.com) *
3 * This file is part of kdenlive. See www.kdenlive.org. *
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 ***************************************************************************/
11 #ifndef AUDIOSTREAMINFO_H
12 #define AUDIOSTREAMINFO_H
14 #include <mlt++/Mlt.h>
18 Provides easy access to properties of an audio stream.
23 AudioStreamInfo(Mlt::Producer *producer, int audioStreamIndex);
26 int streamIndex() const;
27 int samplingRate() const;
30 const QString& codecName(bool longName = false) const;
31 const QString& samplingFormat() const;
33 void dumpInfo() const;
36 int m_audioStreamIndex;
42 QString m_codecLongName;
43 QString m_samplingFormat;
47 #endif // AUDIOSTREAMINFO_H