00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef QGST_STREAMVOLUME_H
00018 #define QGST_STREAMVOLUME_H
00019
00020 #include "global.h"
00021 #include "../QGlib/object.h"
00022
00023 namespace QGst {
00024
00028 class QTGSTREAMER_EXPORT StreamVolume : public QGlib::Interface
00029 {
00030 QGST_WRAPPER(StreamVolume)
00031 public:
00032 double volume(StreamVolumeFormat format = StreamVolumeFormatLinear) const;
00033 void setVolume(double value, StreamVolumeFormat format = StreamVolumeFormatLinear);
00034
00035 bool isMuted() const;
00036 void setMuted(bool muted);
00037
00038 static double convert(StreamVolumeFormat from, StreamVolumeFormat to, double value);
00039 };
00040
00041 }
00042
00043 QGST_REGISTER_TYPE(QGst::StreamVolume)
00044 QGLIB_REGISTER_INTERFACE(QGst::StreamVolume)
00045
00046 #endif // QGST_STREAMVOLUME_H