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 7977759
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T09:17:57+00:00 2026-06-04T09:17:57+00:00

Can I record more than one channel at the same time either using MediaRecorder

  • 0

Can I record more than one channel at the same time either using MediaRecorder or AudioRecord? What I want is to be able to record both MediaRecorder.AudioSource.VOICE_UPLINK and VOICE_DOWNLINK at the same time. Can be into two separate files or to same file with two channels. I tried using two separate instances of MediaRecorder. But only the first one records. The second one says the input is unavailable. I also tried to use one MediaRecorder and one AudioRecord at the same time. Again, Both works individually but when AudioRecord comes after MediaRecorder is started, The following errors are shown.

05-21 03:40:42.735: E/AudioRecord(1322): Could not get audio input for record source 1
05-21 03:40:42.735: E/AudioRecord-JNI(1322): Error creating AudioRecord instance:     initialization check failed.
05-21 03:40:42.825: E/AudioRecord-Java(1322): [ android.media.AudioRecord ] Error code -20     when initializing native AudioRecord object.

I also tried to put the second MediaRecorder on a new thread. Again the same result. So this makes me wonder if it is possible to record simultaneously at all. I was also thinking if i can use one AudioRecord with two channels set two separate inputs from VOICE_UPLINK and VOICE_DOWNLINK but I don’t know how to set the sources if it is possible at all.

Thanks in advance

EDIT:

Lucifer’s answer means AudioRecord cannot be called asynchronously having more than one instance running at the same time. Does anyone know a way in which AudioSource.VOICE_UPLINK and AudioSource.VOICE_DOWNLINK can be recorded at the same time? Maybe using a single instance of AudioRecord with multiple channels?

  • 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-06-04T09:17:59+00:00Added an answer on June 4, 2026 at 9:17 am

    As per my Knowledge, AudioRecording is a Synchronized Method. So you can not use do two recording at a same time.

    When your code is going for Second Recording Process it is showing the error 05-21 03:40:42.735: E/AudioRecord(1322): Could not get audio input for record source 1 which purely means that Recording Channel is already busy by First one.

    However this can possible by parallel processing of two thread in such a ways that first thread record for the a specific amount of time. when control passes two second thread, first thread stops recording and second one start recording and vice versa. But as per mobile device this will become more complex. So better you record one channel at a time.

    You can create a queue of recording, which will do recording one by one.

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

Sidebar

Related Questions

I know the fact that I can't get more than 128 records by one
I want to know how we can get record count using reference cursor in
I need some logic/programming help with reading more than one record from a text
I'm trying to implement a search, where you can enter more than one searchterm
How can I see all the records that appear more than once per day?
I'm starting a new project, trying to do things right this time(so more than
I need to SELECT from more than one table that has a lot of
Sometimes I want to join a record that I can easily identify as sort
I would like to know how I can record a video in MATLAB with
I am searching for a web service which can record the actions done by

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.