Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Audio stops after a few seconds #3

Open
toaniel opened this issue Jan 11, 2019 · 2 comments
Open

Audio stops after a few seconds #3

toaniel opened this issue Jan 11, 2019 · 2 comments

Comments

@toaniel
Copy link
Contributor

toaniel commented Jan 11, 2019

Not sure why audio stops after a few seconds.

@AliAsadi
Copy link
Owner

Hi @toaniel,
First of all thanks for contribution 👍

The reason that the audio stops after few second because the streamer has already read all the bytes from the file.

If you take a look at the StreamEngine inside writeBufferToStreamer() after opening the streamer we start writing a bytes to the streamer to play the audio.

After playing all the audio from the buffer the audio will stop, you can see that if you add a log after the line of writing bytes.

aaudio_result_t result = AAudioStream_write(playStream_, buffer_, 800000, 200);
LOGW("DONE!");

@jjlopez8
Copy link

Hi.
I can't compile it in Android Studio 4.1.2
I get the message:

FAILURE: Build failed with an exception.

  • What went wrong:
    Task 'wrapper' not found in project ':app'.

  • Try:
    Run gradle tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 0s

Any ideas ?

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants