ab36193bbd
http://bugs.backtrace.info/view.php?id=505 for libsoup>=2.4 support. Changes: * gcc 4.3 support thanks to Siavash and Alexander Kahl * spectrum analyser fixed (nenolog) * many bug fixes
67 lines
1.6 KiB
Text
67 lines
1.6 KiB
Text
$NetBSD: patch-ac,v 1.4 2008/10/28 22:23:40 wiz Exp $
|
|
|
|
--- src/audio/audio.hh.orig 2008-03-05 21:31:05.000000000 +0000
|
|
+++ src/audio/audio.hh
|
|
@@ -126,7 +126,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
|
|
*/
|
|
@@ -165,30 +188,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
|
|
*/
|