Skip to content

Commit

Permalink
DEBUG: turn off any gain processing on microphone for debug version
Browse files Browse the repository at this point in the history
  • Loading branch information
zoff99 committed Nov 10, 2024
1 parent e75fc35 commit 2d7dabf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,8 @@ public static void rec_buffer_ready(int rec_buffer_num)

public static native void set_aec_active(int active);

public static native void set_gainprocessing_active(int active);

public static native void set_rec_preset(boolean with_loud_speaker);

public static native int get_aec_active();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -541,14 +541,13 @@ void bqRecorderCallback(SLAndroidSimpleBufferQueueItf bq, void *context)



int16_t *this_buffer_pcm16 = (int16_t *) audio_rec_buffer[rec_buf_pointer_start];
int this_buffer_size_pcm16 = audio_rec_buffer_size[rec_buf_pointer_start] / 2;


if (gainprocessing_active == 1)
{

int16_t *this_buffer_pcm16 = (int16_t *) audio_rec_buffer[rec_buf_pointer_start];
int this_buffer_size_pcm16 = audio_rec_buffer_size[rec_buf_pointer_start] / 2;

#if 1
// TODO: make this better? faster?
// --------------------------------------------------
Expand Down

0 comments on commit 2d7dabf

Please sign in to comment.