Debian Codegraph @

gstreamer/src/streamvolume.hg

raw
1 /* gstreamermm - a C++ wrapper for gstreamer
2 *
3 * Copyright 2009 The gstreamermm Development Team
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free
17 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 */
19
20 #include <gst/audio/streamvolume.h>
21 #include <glibmm/interface.h>
22
23 _DEFS(gstreamermm,gst)
24
25 namespace Gst
26 {
27
28 _WRAP_ENUM(StreamVolumeFormat, GstStreamVolumeFormat, NO_GTYPE)
29
30 /** An interface for elements that provide a stream volume.
31 * @ingroup GstInterfaces
32 */
33
34 class StreamVolume : public Glib::Interface
35 {
36 _CLASS_INTERFACE(StreamVolume, GstStreamVolume, GST_STREAM_VOLUME, GstStreamVolumeInterface)
37
38 public:
39 _WRAP_METHOD(double get_volume(Gst::StreamVolumeFormat format), gst_stream_volume_get_volume)
40 _WRAP_METHOD(void set_volume(Gst::StreamVolumeFormat format, double val), gst_stream_volume_set_volume)
41 _WRAP_METHOD(bool get_mute(), gst_stream_volume_get_mute)
42 _WRAP_METHOD(void set_mute(bool mute), gst_stream_volume_set_mute)
43 _WRAP_METHOD(static double convert_volume(Gst::StreamVolumeFormat from, Gst::StreamVolumeFormat to, double val),
44 gst_stream_volume_convert_volume)
45
46 // Properties:
47 _WRAP_PROPERTY("mute", bool)
48 _WRAP_PROPERTY("volume", double)
49 };
50
51 } // namespace Gst