1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

filter_audio updated its api and added the parameter 'vad' in function 'enable_disable_filters'

This commit is contained in:
Marcel 2015-05-17 01:21:03 +02:00 committed by marcel
parent 7608b901a1
commit b97b7d3fd4
2 changed files with 3 additions and 3 deletions

View File

@ -39,9 +39,9 @@ bool AudioFilterer::filterAudio(int16_t* data, int framesize)
}
/* Enable/disable filters. 1 to enable, 0 to disable. */
bool AudioFilterer::enableDisableFilters(int echo, int noise, int gain)
bool AudioFilterer::enableDisableFilters(int echo, int noise, int gain, int vad)
{
return filter && 0 == enable_disable_filters(filter, echo, noise, gain);
return filter && 0 == enable_disable_filters(filter, echo, noise, gain, vad);
}
/* Give the audio output from your software to this function so it knows what echo to cancel from the frame */

View File

@ -30,7 +30,7 @@ public:
void closeFilter();
/* Enable/disable filters. 1 to enable, 0 to disable. */
bool enableDisableFilters(int echo, int noise, int gain);
bool enableDisableFilters(int echo, int noise, int gain, int vad);
bool filterAudio(int16_t* data, int samples);