summaryrefslogtreecommitdiff
path: root/audio/bmpx/patches/patch-ac
diff options
context:
space:
mode:
Diffstat (limited to 'audio/bmpx/patches/patch-ac')
-rw-r--r--audio/bmpx/patches/patch-ac67
1 files changed, 67 insertions, 0 deletions
diff --git a/audio/bmpx/patches/patch-ac b/audio/bmpx/patches/patch-ac
new file mode 100644
index 00000000000..7e1447daa91
--- /dev/null
+++ b/audio/bmpx/patches/patch-ac
@@ -0,0 +1,67 @@
+$NetBSD: patch-ac,v 1.3 2007/08/30 15:30:31 joerg Exp $
+
+--- src/audio/audio.hh.orig 2007-08-11 18:41:50.000000000 +0000
++++ src/audio/audio.hh
+@@ -125,7 +125,30 @@ namespace Bmp
+ */
+ struct Element
+ {
+- class Attr;
++ /** An attribute holds a @link Bmp::Audio::Element::Attr::Value@endlink,
++ * and a name (std::string)
++ */
++ struct Attr
++ {
++ /** boost::variant type for bool, int, double and string values
++ */
++ typedef boost::variant<bool, int, double, std::string> Value;
++
++ std::string name;
++ Value value;
++
++ /** Default ctor
++ */
++ Attr () {}
++
++ /** Ctor taking the value, type and the name
++ */
++ Attr (std::string const& name,
++ Value const& value)
++ : name (name)
++ , value (value)
++ {}
++ };
+
+ /** std::vector typedef of an Attr
+ */
+@@ -164,30 +187,6 @@ namespace Bmp
+ }
+ };
+
+- /** An attribute holds a @link Bmp::Audio::Element::Attr::Value@endlink,
+- * and a name (std::string)
+- */
+- struct Element::Attr
+- {
+- /** boost::variant type for bool, int, double and string values
+- */
+- typedef boost::variant<bool, int, double, std::string> Value;
+-
+- std::string name;
+- Value value;
+-
+- /** Default ctor
+- */
+- Attr () {}
+-
+- /** Ctor taking the value, type and the name
+- */
+- Attr (std::string const& name,
+- Value const& value)
+- : name (name)
+- , value (value)
+- {}
+- };
+
+ /** Current state of the audio processing unit
+ */