[gstreamermm: 5/167] added a part-implementation of AudioFormatInfo class
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gstreamermm: 5/167] added a part-implementation of AudioFormatInfo class
- Date: Tue, 3 Sep 2013 19:19:30 +0000 (UTC)
commit 3091a29887a9c202ea0dd380ffdabcd82bf881a5
Author: Marcin Kolny at Flytronic <marcin kolny flytronic pl>
Date: Tue Jul 23 15:51:20 2013 +0200
added a part-implementation of AudioFormatInfo class
gstreamer/src/audioformat.hg | 55 +++++++++++++++++++++++++++++++++++++++++
gstreamer/src/filelist.am | 1 +
2 files changed, 56 insertions(+), 0 deletions(-)
---
diff --git a/gstreamer/src/audioformat.ccg b/gstreamer/src/audioformat.ccg
new file mode 100644
index 0000000..e69de29
diff --git a/gstreamer/src/audioformat.hg b/gstreamer/src/audioformat.hg
new file mode 100644
index 0000000..d5ccead
--- /dev/null
+++ b/gstreamer/src/audioformat.hg
@@ -0,0 +1,55 @@
+/* gstreamermm - a C++ wrapper for gstreamer
+ *
+ * Copyright 2008-2009 The gstreamermm Development Team
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
+_DEFS(gstreamermm,gst)
+
+namespace Gst
+{
+
+ _WRAP_ENUM(AudioFormat, GstAudioFormat)
+ _WRAP_ENUM(AudioFormatFlags, GstAudioFormatFlags)
+
+/**
+ * Information for an audio format.
+ */
+class AudioFormatInfo
+{
+ _CLASS_GENERIC(AudioFormatInfo, GstAudioFormatInfo)
+public:
+ /**
+ * Defualt constructor.
+ */
+ AudioFormatInfo();
+
+ AudioFormatInfo(Gst::AudioFormat format = Gst::AUDIO_FORMAT_UNKNOWN,
+ const gchar* name = NULL, const gchar* description = NULL,
+ Gst::AudioFormatFlags flags = Gst::AUDIO_FORMAT_FLAG_INTEGER,
+ gint endianness = 0, gint width = 0, gint depth = 0,
+ guint8 silence[8] = {0});
+
+ explicit AudioFormatInfo(GstAudioFormatInfo& castitem,
+ bool take_ownership = false);
+
+ AudioFormatInfo(const AudioFormatInfo& other);
+
+ AudioFormatInfo& operator=(const AudioFormatInfo& other);
+
+ virtual ~AudioFormatInfo();
+};
+} //namespace Gst
diff --git a/gstreamer/src/filelist.am b/gstreamer/src/filelist.am
index 2a6bb1c..75f14da 100644
--- a/gstreamer/src/filelist.am
+++ b/gstreamer/src/filelist.am
@@ -88,6 +88,7 @@ files_hg = \
audiobasesrc.hg \
audioclock.hg \
audiofilter.hg \
+ audioformat.hg \
audioringbuffer.hg \
audiosink.hg \
audiosrc.hg \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]