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:
parent
e25baaa90e
commit
30612dd6cf
|
@ -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 */
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user