Finally removed the Control class, the same stuff can be done in the AudioProcessor subclass...The Control source files are still in the repo in case they need to be looked at, but will eventually remove those too.

This commit is contained in:
xenakios
2017-11-21 00:39:07 +02:00
parent 31dbfb84cd
commit 5b54b15ba6
6 changed files with 152 additions and 43 deletions

View File

@ -28,7 +28,7 @@
#endif
using namespace std;
#ifdef USEPSCONTROL
Control::Control(AudioFormatManager* afm) : m_afm(afm), m_bufferingthread("stretchbufferingthread")
{
m_stretch_source = std::make_unique<StretchAudioSource>(2,m_afm);
@ -619,3 +619,4 @@ void Control::update_process_parameters()
//if (player)
// player->set_process_parameters(&ppar,&bbpar);
};
#endif

View File

@ -54,7 +54,7 @@ public:
bool clipFloatOutput = true;
std::function<void(RenderInfoRef)> completion_callback;
};
#ifdef USEPSCONTROL
class Control
{
public:
@ -149,3 +149,4 @@ private:
double m_last_in_pos = 0.0;
std::vector<int> m_bufamounts{ 4096,8192,16384,32768,65536,262144 };
};
#endif