From 90b03b5a8e94d88f6666ee884829f870fc14fffb Mon Sep 17 00:00:00 2001 From: rafael2k Date: Wed, 2 Apr 2008 14:57:27 +0000 Subject: hydrogen fix git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@1694 370017ae-e619-0410-ac65-c121f96126d4 --- media/sound/hydrogen/hydrogen-0.9.3.diff | 535 +++++++++++++++++++++++++++++++ 1 file changed, 535 insertions(+) create mode 100644 media/sound/hydrogen/hydrogen-0.9.3.diff (limited to 'media/sound') diff --git a/media/sound/hydrogen/hydrogen-0.9.3.diff b/media/sound/hydrogen/hydrogen-0.9.3.diff new file mode 100644 index 00000000..d47db8d9 --- /dev/null +++ b/media/sound/hydrogen/hydrogen-0.9.3.diff @@ -0,0 +1,535 @@ +--- hydrogen-0.9.3/src/lib/xml/tinyxml.h~ 2006-03-15 15:43:13.000000000 +0000 ++++ hydrogen-0.9.3/src/lib/xml/tinyxml.h 2006-03-15 15:43:33.000000000 +0000 +@@ -823,9 +823,9 @@ + #endif + + /// Construct. +- TiXmlDeclaration::TiXmlDeclaration( const char * _version, +- const char * _encoding, +- const char * _standalone ); ++ TiXmlDeclaration( const char * _version, ++ const char * _encoding, ++ const char * _standalone ); + + virtual ~TiXmlDeclaration() {} + + +--- hydrogen-0.9.3/src/tools/HydrogenPlayer.cpp~ 2007-04-01 21:01:06.000000000 +0000 ++++ hydrogen-0.9.3/src/tools/HydrogenPlayer.cpp 2007-04-01 21:01:28.000000000 +0000 +@@ -25,6 +25,7 @@ + + #include + ++#include + #include + #include + #include +--- hydrogen-0.9.3/src/gui/DrumkitManager.cpp~ 2007-04-01 21:03:50.000000000 +0000 ++++ hydrogen-0.9.3/src/gui/DrumkitManager.cpp 2007-04-01 21:03:58.000000000 +0000 +@@ -22,6 +22,7 @@ + * + */ + #include ++#include + + #include "config.h" + #include "Skin.h" +--- hydrogen-0.9.3/src/gui/HydrogenApp.cpp~ 2007-04-01 21:04:29.000000000 +0000 ++++ hydrogen-0.9.3/src/gui/HydrogenApp.cpp 2007-04-01 21:04:37.000000000 +0000 +@@ -46,6 +46,7 @@ + #include "LadspaFXProperties.h" + #include "SongEditor/SongEditorPanel.h" + ++#include + #include + #include + #include +--- hydrogen-0.9.3/src/gui/main.cpp~ 2007-04-01 21:05:56.000000000 +0000 ++++ hydrogen-0.9.3/src/gui/main.cpp 2007-04-01 21:06:04.000000000 +0000 +@@ -42,6 +42,7 @@ + #include "lib/DataPath.h" + #include "lib/Exception.h" + ++#include + #include + using namespace std; + +--- hydrogen-0.9.3/src/lib/FLACFile.cpp ++++ hydrogen-0.9.3/src/lib/FLACFile.cpp +@@ -39,6 +39,8 @@ + #undef LEGACY_FLAC + #endif + ++#include ++ + + /// Reads a FLAC file...not optimized yet + class FLACFile_real : public FLAC::Decoder::File, public Object +--- hydrogen-0.9.3/src/lib/drivers/OssDriver.cpp ++++ hydrogen-0.9.3/src/lib/drivers/OssDriver.cpp +@@ -31,6 +31,8 @@ + + #include + ++#include ++ + audioProcessCallback ossDriver_audioProcessCallback; + bool ossDriver_running; + pthread_t ossDriverThread; +--- hydrogen-0.9.3/src/lib/FLACFile.cpp.old 2007-02-11 20:12:34.000000000 +0100 ++++ hydrogen-0.9.3/src/lib/FLACFile.cpp 2007-02-11 20:18:25.000000000 +0100 +@@ -33,6 +33,13 @@ + //#include "FLAC/file_decoder.h" + #include + ++#if !defined(FLAC_API_VERSION_CURRENT) || FLAC_API_VERSION_CURRENT < 8 ++#define LEGACY_FLAC ++#else ++#undef LEGACY_FLAC ++#endif ++ ++ + /// Reads a FLAC file...not optimized yet + class FLACFile_real : public FLAC::Decoder::File, public Object + { +@@ -164,16 +171,28 @@ + } + + set_metadata_ignore_all(); ++ ++#ifdef LEGACY_FLAC + set_filename( sFilename.c_str() ); + + State s=init(); + if( s != FLAC__FILE_DECODER_OK ) { ++#else ++ FLAC__StreamDecoderInitStatus s=init(sFilename.c_str() ); ++ if(s!=FLAC__STREAM_DECODER_INIT_STATUS_OK) { ++#endif + errorLog( "[load] Error in init()" ); + } + ++#ifdef LEGACY_FLAC + if ( process_until_end_of_file() == false ) { + errorLog( "[load] Error in process_until_end_of_file()" ); + } ++#else ++ if ( process_until_end_of_stream() == false ) { ++ errorLog( "[load] Error in process_until_end_of_stream()" ); ++ } ++#endif + } + +--- a/hydrogen-0.9.3/data/demo_songs/TR808kit-demo.h2song 2005-10-18 00:32:04.000000000 +0200 ++++ b/hydrogen-0.9.3/data/demo_songs/TR808kit-demo.h2song 2007-06-05 15:33:19.000000000 +0200 +@@ -1,5 +1,5 @@ + +- 0.9.2-cvs ++ 0.9.3 + 125 + 0.71 + 0.5 +@@ -7,10 +7,14 @@ + ArtemioLabs + Demo patterns for the TR-808 Emulation Kit. + true +- song ++ pattern + 0 + 0 + 0 ++ false ++ 1 ++ 0.4 ++ 48 + + + 0 +@@ -18,8 +22,10 @@ + Kick Long + 1 + false ++ false + 1 + 1 ++ 1 + 0 + 0 + 0 +@@ -44,8 +50,10 @@ + Kick Short + 1 + false ++ false + 1 + 1 ++ 1 + 0 + 0 + 0 +@@ -70,8 +78,10 @@ + Snare 1 + 1 + false ++ false + 1 + 1 ++ 1 + 0 + 0 + 0 +@@ -96,8 +106,10 @@ + Snare 2 + 1 + false ++ false + 1 + 1 ++ 1 + 0 + 0 + 0 +@@ -122,8 +134,10 @@ + Clap + 1 + false ++ false + 1 + 1 ++ 1 + 0 + 0 + 0 +@@ -148,8 +162,10 @@ + Tom Low + 0.77 + false ++ false + 1 + 0.52 ++ 1 + 0 + 0 + 0 +@@ -174,8 +190,10 @@ + Tom Mid + 0.79 + false ++ false + 1 + 1 ++ 1 + 0 + 0 + 0 +@@ -200,8 +218,10 @@ + Tom Hi + 0.79 + false ++ false + 0.48 + 1 ++ 1 + 0 + 0 + 0 +@@ -226,8 +246,10 @@ + Closed Hat + 1 + false ++ false + 1 + 1 ++ 1 + 0 + 0 + 0 +@@ -252,8 +274,10 @@ + Pedal Hat + 1 + false ++ false + 1 + 1 ++ 1 + 0 + 0 + 0 +@@ -278,8 +302,10 @@ + Open Hat + 1 + false ++ false + 1 + 1 ++ 1 + 0 + 0 + 0 +@@ -304,8 +330,10 @@ + Cymbal + 0.82 + false ++ false + 1 + 1 ++ 1 + 0 + 0 + 0 +@@ -330,8 +358,10 @@ + Shaker + 0.84 + false ++ false + 1 + 1 ++ 1 + 0 + 0 + 0 +@@ -356,8 +386,10 @@ + Conga + 0.88 + false ++ false + 0.9 + 1 ++ 1 + 0 + 0 + 0 +@@ -382,8 +414,10 @@ + Clave + 0.84 + false ++ false + 0.96 + 1 ++ 1 + 0 + 0 + 0 +@@ -408,8 +442,10 @@ + Cowbell + 0.85 + false ++ false + 0.96 + 1 ++ 1 + 0 + 0 + 0 +@@ -434,8 +470,10 @@ + 17 + 0.8 + true ++ false + 1 + 1 ++ 1 + 0 + 0 + 0 +@@ -453,8 +491,10 @@ + 18 + 0.8 + true ++ false + 1 + 1 ++ 1 + 0 + 0 + 0 +@@ -472,8 +512,10 @@ + 19 + 0.8 + true ++ false + 1 + 1 ++ 1 + 0 + 0 + 0 +@@ -491,8 +533,10 @@ + 20 + 0.8 + true ++ false + 1 + 1 ++ 1 + 0 + 0 + 0 +@@ -510,8 +554,10 @@ + 21 + 0.8 + true ++ false + 1 + 1 ++ 1 + 0 + 0 + 0 +@@ -529,8 +575,10 @@ + 22 + 0.8 + true ++ false + 1 + 1 ++ 1 + 0 + 0 + 0 +@@ -548,8 +596,10 @@ + 23 + 0.8 + true ++ false + 1 + 1 ++ 1 + 0 + 0 + 0 +@@ -567,8 +617,10 @@ + 24 + 0.8 + true ++ false + 1 + 1 ++ 1 + 0 + 0 + 0 +@@ -586,8 +638,10 @@ + 25 + 0.8 + true ++ false + 1 + 1 ++ 1 + 0 + 0 + 0 +@@ -605,8 +659,10 @@ + 26 + 0.8 + true ++ false + 1 + 1 ++ 1 + 0 + 0 + 0 +@@ -624,8 +680,10 @@ + 27 + 0.8 + true ++ false + 1 + 1 ++ 1 + 0 + 0 + 0 +@@ -643,8 +701,10 @@ + 28 + 0.8 + true ++ false + 1 + 1 ++ 1 + 0 + 0 + 0 +@@ -662,8 +722,10 @@ + 29 + 0.8 + true ++ false + 1 + 1 ++ 1 + 0 + 0 + 0 +@@ -681,8 +743,10 @@ + 30 + 0.8 + true ++ false + 1 + 1 ++ 1 + 0 + 0 + 0 +@@ -700,8 +764,10 @@ + 31 + 0.8 + true ++ false + 1 + 1 ++ 1 + 0 + 0 + 0 +@@ -719,8 +785,10 @@ + 32 + 0.8 + true ++ false + 1 + 1 ++ 1 + 0 + 0 + 0 +@@ -1602,15 +1670,6 @@ + -1 + 9 + +- +- 168 +- 0.8 +- 1 +- 1 +- 0 +- -1 +- 9 +- + + + +@@ -1792,7 +1851,17 @@ + + + +- ++ ++ ++ 156 ++ 0.8 ++ 1 ++ 1 ++ 0 ++ -1 ++ 26 ++ ++ + + + + -- cgit v1.2.3