Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5846543
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T12:35:29+00:00 2026-05-22T12:35:29+00:00

Just for confirmation. When an audio player, created via OpenSL ES for Android, finishes

  • 0

Just for confirmation. When an audio player, created via OpenSL ES for Android, finishes playing a buffer, is that buffer automatically freed by the Garbage collector? Or do I need to free the buffer myself?

If it is the latter, I could use some help. But as for now, I won’t post any code until I get told that I need to do it myself…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T12:35:30+00:00Added an answer on May 22, 2026 at 12:35 pm

    The buffer queue doesn’t actually allocate buffer memory itself (or need to free it), you pass in pointers to memory you have allocated via the ‘enqueue’ function. You will need to free the memory you allocated when you’re finished playing buffers.

    As OpenSL ES is a native library in C++, it knows nothing of garbage collection, any memory you allocate for the API must be freed by you, and objects you create must have ‘destroy’ called on them to clean up internal memory.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just need a confirmation that i have understood the concept of locks in
Just want confirmation that this assertion is correct: python cannot ever experience the dangling
I just need confirmation that I am doing XML parsing right. Am I doing
I have an attribute that I just added to my database to hold confirmation
Just seeking confirmation here : apache Thrift protocol does not seem to support running
this is a homework which I already did, I just need either confirmation if
I am just wondering... How to block main thread as JOptionPane (its confirmation dialog)
Just wondering how I can make my app open automatically at login, but make
Just to make sure I'm understanding shallow copies of reference types correctly and that
I'm suspecting the answer is no, but I just want confirmation before I move

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.