17 #include "streamvolume.h"
18 #include <gst/interfaces/streamvolume.h>
22 double StreamVolume::volume(StreamVolumeFormat format)
const
24 return gst_stream_volume_get_volume(object<GstStreamVolume>(),
25 static_cast<GstStreamVolumeFormat>(format));
28 void StreamVolume::setVolume(
double value, StreamVolumeFormat format)
30 gst_stream_volume_set_volume(object<GstStreamVolume>(),
31 static_cast<GstStreamVolumeFormat>(format), value);
34 bool StreamVolume::isMuted()
const
36 return gst_stream_volume_get_mute(object<GstStreamVolume>());
39 void StreamVolume::setMuted(
bool muted)
41 gst_stream_volume_set_mute(object<GstStreamVolume>(), muted);
44 double StreamVolume::convert(StreamVolumeFormat from, StreamVolumeFormat to,
double value)
46 return gst_stream_volume_convert_volume(static_cast<GstStreamVolumeFormat>(from),
47 static_cast<GstStreamVolumeFormat>(to), value);