35
35
#include "algorithm.h"
38
* Process audio buffers using specified at instantiation which may be
38
* Process audio buffers using specified at instantiation which may be
39
39
* changed dynamically at runtime.
41
class AudioProcessing {
46
* The constructor for this class
48
AudioProcessing(Algorithm *_algo);
50
~AudioProcessing(void);
53
* Set a new algorithm to process audio. Algorithm must be a subclass of abstract class Algorithm
55
void setAlgorithm(Algorithm *_algo) { _algorithm = _algo; }
58
* Put data in internal buffer
60
void putData(SFLDataFormat *inputData);
63
* Process dome audio data
65
void processAudio(SFLDataFormat *inputData, SFLDataFormat *outputData);
68
* Process some audio data.
70
void processAudio(SFLDataFormat *micData, SFLDataFormat *spkrData, SFLDataFormat *outputData);
74
Algorithm *_algorithm;
47
* The constructor for this class
49
AudioProcessing (Algorithm *_algo);
51
~AudioProcessing (void);
54
* Set a new algorithm to process audio. Algorithm must be a subclass of abstract class Algorithm
56
void setAlgorithm (Algorithm *_algo) {
62
* Reset parameters for the algorithm
64
void resetAlgorithm();
67
* Put data in internal buffer
69
void putData (SFLDataFormat *inputData, int nbBytes);
72
* Get data from internal buffer
74
int getData (SFLDataFormat *outputData);
77
* Process some audio data
79
void processAudio (SFLDataFormat *inputData, int nbBytes);
82
* Process some audio data
84
int processAudio (SFLDataFormat *inputData, SFLDataFormat *outputData, int nbBytes);
87
* Process some audio data.
89
void processAudio (SFLDataFormat *micData, SFLDataFormat *spkrData, SFLDataFormat *outputData, int nbBytes);
93
Algorithm *_algorithm;