android / android/ndk-samples

audio-echo app stops audio are running for a while

Open
#689 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
10.5k
Forks
4.3k
PR merge metrics
No merged PRs in 30d

Description

I am trying to see if I can modify the audio-echo app for my application

First I am trying out the default application without any changes (except some changes in the app's build.gradle related to compiling a release version)

Phone is Samsung Galaxy S6 Edge with Android 7.0 and the default sample rate and buffer size are 48000 and 240 respectively

The audio simply stopped after letting the app run for some time

Sometimes it stops after 3 minutes, sometimes it keeps running for even more than 10 minutes

I should point out the app is still working, just the audio stops. I can simply press the Stop Echo button on the user interface and click the Start Echo button again to restart audio. However in some cases the audio simply stops after some time and in some cases it doesn't.

Why is this happening and is there a way to fix this issue?

Contributor guide

Open the contributing guide

Research direction

Start with the audio-echo app and its build.gradle settings, then reproduce on a Samsung Galaxy S6 Edge running Android 7.0 with a 48000 sample rate and 240 buffer size. Compare the running audio with the Stop Echo and Start Echo controls; done means identifying why audio stops after several minutes and preventing the stop without requiring a restart.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, cpp
Domain
audio-video-rtc, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.