ITABaseDefinitions.h 1.68 KB
Newer Older
Jonas Stienen's avatar
Jonas Stienen committed
1
/*
2 3 4 5
 * ----------------------------------------------------------------
 *
 *		ITA core libs
 *		(c) Copyright Institute of Technical Acoustics (ITA)
6
 *		RWTH Aachen University, Germany, 2015-2019
7 8 9 10 11 12 13 14 15 16 17
 *
 * ----------------------------------------------------------------
 *				    ____  __________  _______
 *				   //  / //__   ___/ //  _   |
 *				  //  /    //  /    //  /_|  |
 *				 //  /    //  /    //  ___   |
 *				//__/    //__/    //__/   |__|
 *
 * ----------------------------------------------------------------
 *
 */
Jonas Stienen's avatar
Jonas Stienen committed
18 19 20 21

#ifndef INCLUDE_WATCHER_ITA_BASE_DEFINITIONS
#define INCLUDE_WATCHER_ITA_BASE_DEFINITIONS

22
#if ( defined WIN32 ) && !( defined ITA_BASE_STATIC )
23 24
#ifdef ITA_BASE_EXPORT
#define ITA_BASE_API __declspec( dllexport )
Jonas Stienen's avatar
Jonas Stienen committed
25
#else
26
#define ITA_BASE_API __declspec( dllimport )
Jonas Stienen's avatar
Jonas Stienen committed
27
#endif
28 29 30 31 32 33
#else
#define ITA_BASE_API
#endif

namespace ITABase
{
34
	namespace MixingMethod
35
	{
36 37 38 39 40 41
		enum
		{
			OVERWRITE = 0, //!< Overwrites the target buffer with new samples
			ADD = 1, //!< Adds (mixes) the new samples to the target buffer
		};
	}
42 43

	//! berblendfunktionen
44
	namespace FadingFunction
45
	{
46 47 48 49 50 51 52
		enum
		{
			SWITCH = -1,
			LINEAR = 0,			//!< Lineare berblendung aka. Rampe
			COSINE_SQUARE,	//!< Cosinus-Quadrat berblendung (aka Hanning-Fenster)
		};
	}
53 54 55 56 57

	//! Fading sign
	/**
	  * Direction how to fade, i.e. in or out
	  */
58
	namespace FadingSign
59
	{
60 61 62 63 64 65
		enum
		{
			FADE_IN = 0,	//!< Fade in
			FADE_OUT,	//!< Fade out
		};
	}
66 67 68 69
	//! Crossfade direction
	/**
	  * Fading direction from source or to source
	  */
70
	namespace CrossfadeDirection
71
	{
72 73 74 75 76 77
		enum
		{
			TO_SOURCE = 0,	//!< Crossfade to the source signal
			FROM_SOURCE,	//!< Crossfade off source signal
		};
	}
78
}
Jonas Stienen's avatar
Jonas Stienen committed
79 80

#endif // INCLUDE_WATCHER_ITA_BASE_DEFINITIONS