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

  • Home
  • SEARCH
  • 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 6652445
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T01:08:22+00:00 2026-05-26T01:08:22+00:00

In my application, I will be creating multiple Audio Tracks, some of which will

  • 0

In my application, I will be creating multiple Audio Tracks, some of which will need to play simultaneously. I’m going to use MODE_STREAM and write data in as the app runs. Sounds are going to be dynamically generated, which is why I use Audio Track as opposed to anything else.
I have 4 options, I believe:

  1. AsyncTask
  2. One UI thread and one thread that manages all the AudioTrack playing
  3. One UI thread and one thread for each AudioTrack
  4. One UI thread and a Thread Pool

Which of the four methods would be the best way to manage multiple AudioTracks?

I think Thread Pool is the way to go, but I’m not positive as I haven’t actually used it.

Any advice would be greatly appreciated

  • 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-26T01:08:22+00:00Added an answer on May 26, 2026 at 1:08 am

    For simplicity, I was just creating a new thread every time I played an AudioTrack.

    But, regardless it really doesn’t matter. I found that when trying to play more than one AudioTrack at a time, there’s a crackling/choppy sound. I believe this is just an issue with the Android system, not with my app.

    As of API level 9 (gingerbread) I can apply a session id to an audio track, which I believe would let me play it with SoundPool, which should make the playing of multiple AudioTracks at once much smoother.

    Right now, due to how many users are still on 2.2 and the fact that I don’t have a gingerbread device, I will put this project aside until later.

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

Sidebar

Related Questions

I am creating a multiple stop watch application for which there will be multiple
I'm creating a web application that will use multiple types of users (e.g. Admin,
I am creating a Silverlight application which will be heavily javascripted against. To enable
I'm in the process of creating a C# application which will monitor changes made
I have been given the tasks of speccing a mobile application, which will need
I am creating a application that requires to store multiple attributes, and it will
I have an ASP.NET MVC3 application in which I am creating multiple areas, is
I am in the process of designing a web application which will have multiple
I'm creating a multiple-tenant application that won't use any of the standard Django Admin
I am creating a java application that connects to multiple databases. A user will

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.