Commit e7dd0a3c authored by Alexandre Savard's avatar Alexandre Savard

[#1966] Add audioProcessing method to access algorithm

parent 75be06bd
......@@ -27,6 +27,18 @@ AudioProcessing::AudioProcessing(Algorithm *_algo) : _algorithm(_algo){}
AudioProcessing::~AudioProcessing(void){}
void AudioProcessing::putData(SFLDataFormat *inputData)
{
if(_algorithm)
_algorithm->putData(inputData);
}
void AudioProcessing::processAudio(SFLDataFormat *inputData, SFLDataFormat *outputData)
{
if(_algorithm)
_algorithm->process(inputData, outputData);
}
void AudioProcessing::processAudio(SFLDataFormat *micData, SFLDataFormat *spkrData, SFLDataFormat *outputData) {
if(_algorithm)
......
......@@ -43,6 +43,16 @@ public:
*/
void setAlgorithm(Algorithm *_algo) { _algorithm = _algo; }
/**
* Put data in internal buffer
*/
void putData(SFLDataFormat *inputData);
/**
* Process dome audio data
*/
void processAudio(SFLDataFormat *inputData, SFLDataFormat *outputData);
/**
* Process some audio data.
*/
......
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