/* * ---------------------------------------------------------------- * * ITA core libs * (c) Copyright Institute of Technical Acoustics (ITA) * RWTH Aachen University, Germany, 2015-2019 * * ---------------------------------------------------------------- * ____ __________ _______ * // / //__ ___/ // _ | * // / // / // /_| | * // / // / // ___ | * //__/ //__/ //__/ |__| * * ---------------------------------------------------------------- * */ #ifndef INCLUDE_WATCHER_ITA_BASE_DEFINITIONS #define INCLUDE_WATCHER_ITA_BASE_DEFINITIONS #if ( defined WIN32 ) && !( defined ITA_BASE_STATIC ) #ifdef ITA_BASE_EXPORT #define ITA_BASE_API __declspec( dllexport ) #else #define ITA_BASE_API __declspec( dllimport ) #endif #else #define ITA_BASE_API #endif namespace ITABase { namespace MixingMethod { enum { OVERWRITE = 0, //!< Overwrites the target buffer with new samples ADD = 1, //!< Adds (mixes) the new samples to the target buffer }; } //! Überblendfunktionen namespace FadingFunction { enum { SWITCH = -1, LINEAR = 0, //!< Lineare Überblendung aka. Rampe COSINE_SQUARE, //!< Cosinus-Quadrat Überblendung (aka Hanning-Fenster) }; } //! Fading sign /** * Direction how to fade, i.e. in or out */ namespace FadingSign { enum { FADE_IN = 0, //!< Fade in FADE_OUT, //!< Fade out }; } //! Crossfade direction /** * Fading direction from source or to source */ namespace CrossfadeDirection { enum { TO_SOURCE = 0, //!< Crossfade to the source signal FROM_SOURCE, //!< Crossfade off source signal }; } } #endif // INCLUDE_WATCHER_ITA_BASE_DEFINITIONS