[videodb] remove unused seasons table from episode_view
[xbmc.git] / xbmc / cores / AudioEngine / Utils / AELimiter.h
bloba79fa661b6c73b8ed22f6c451c81bc8827d7d458
1 /*
2 * Copyright (C) 2010-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
9 #pragma once
11 #include "AEAudioFormat.h"
13 #include <algorithm>
15 class CAELimiter
17 private:
18 float m_amplify;
19 float m_attenuation;
20 float m_samplerate;
21 int m_holdcounter;
22 float m_increase;
24 public:
25 CAELimiter();
27 void SetAmplification(float amplify)
29 m_amplify = std::max(std::min(amplify, 1000.0f), 0.0f);
32 float GetAmplification() const
34 return m_amplify;
37 void SetSamplerate(int samplerate)
39 m_samplerate = (float)samplerate;
42 float Run(float* frame[AE_CH_MAX], int channels, int offset = 0, bool planar = false);