Linux compat

parent 003cae52
......@@ -53,6 +53,9 @@ else( )
add_definitions( -DITA_SAMPLER_STATIC -DITA_CTC_STATIC -DITA_CONVOLUTION_STATIC -DITA_FFT_STATIC -DITA_BASE_STATIC -DITA_DATA_SOURCES_STATIC )
endif( )
if( NOT WIN32 )
add_definitions( -std=gnu++11 )
endif( )
# linker
add_library( ITASampler ${ITASamplerHeader} ${ITASamplerSources} )
......
......@@ -21,6 +21,7 @@
#include <ITAException.h>
#include <ITAFunctors.h>
#include <cstring>
#include <algorithm>
ITASoundSampleImpl::ITASoundSampleImpl(const std::string& sFilename, int iMaxNumberOfChannels, double dRequiredSamplerate, std::string sName)
......
......@@ -44,7 +44,7 @@ public:
*
* Hinweis: Die Sample-Daten werden kopiert.
*/
ITASoundSampleImpl::ITASoundSampleImpl(const float** ppfChannelData, int iNumberOfChannels, int iLength, std::string sName="");
ITASoundSampleImpl(const float** ppfChannelData, int iNumberOfChannels, int iLength, std::string sName="");
~ITASoundSampleImpl();
......
......@@ -31,6 +31,8 @@
#include <ITANumericUtils.h>
#include <ITAStringUtils.h>
#include <cstring>
// Vorgabe: Anzahl Samples fr Fading bei Pause/Fortsetzen einer Wiedergabe
#define DEFAULT_PAUSE_FADE_LENGTH 256
......@@ -799,4 +801,4 @@ void ITASoundSamplerImpl::RenderOutputBlock() {
m_csSlotbuf.leave();
m_csTracks.leave();
}
\ No newline at end of file
}
#ifndef INCLUDE_WATCHER_ITA_SOUND_SAMPLER_IMPL
#define INCLUDE_WATCHER_ITA_SOUND_SAMPLER_IMPL
#include <ITASoundSampler.h>
#include <map>
#include <string>
#include <vector>
#include "ITASoundSamplerSlotbuffer.h"
#include <ITACriticalSection.h>
#include <ITADatasourceRealization.h>
#include <ITADataSourceRealization.h>
class ITADatasourceRealization;
class ITASoundSampleImpl;
......@@ -84,7 +84,7 @@ private:
std::vector<int> viChannelRoutings; // Ausgabe Kanle der einzelnen Spurkanle
std::vector<double> vdChannelGains; // Lautstrken der Spurkanle
inline Track() {}
inline Track() {};
inline Track( int iChannels )
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment