don't go through dnr process when it's not enabled
This commit is contained in:
@@ -16,12 +16,17 @@
|
||||
|
||||
#if DNR_ENABLE == 1
|
||||
unsigned g_dsp_eof = 0;
|
||||
extern float g_dnr_level;
|
||||
void dnr_exchange_buffer(int32_t *data) {
|
||||
static unsigned buff_index = 0;
|
||||
int dnr_level = (int)g_dnr_level;
|
||||
if (dnr_level != 0) {
|
||||
write_to_sample_in_buf(data[1], buff_index, 0);
|
||||
read_from_sample_out_buf(&data[1],buff_index, 0);
|
||||
}
|
||||
data[0] = data[1];
|
||||
|
||||
|
||||
buff_index++;
|
||||
#if DNR_11MS
|
||||
if (buff_index == 128)
|
||||
|
||||
Reference in New Issue
Block a user