Results 1 to 2 of 2

Thread: Recording audio by multiple processes on Android

  1. #1
    Junior Member
    Join Date
    Mar 2012

    Recording audio by multiple processes on Android


    I am writing an Android application which is required to record audio continuously in the background. However, the application should not prevent other applications from recording audio (such as voice recorders or VoIP apps). In other words I want my application to have the lowest priority with respect to others and yield the audio source (microphone) when another application/process requests it.

    I found it impossible to do this using the audio recording APIs in the Android SDK so I turned to the native audio API provided by OpenSL ES. The documentation states that OpenSL objects may be assigned priorities and set as preemptable. I was wondering if that would be what I'm looking for. That is, if I set my AudioRecorder object as preemptable and start recording with it, will it yield the microphone resource once another application requests it?

  2. #2
    Junior Member
    Join Date
    Mar 2012

    Re: Recording audio by multiple processes on Android

    The Android native audio APIs based on OpenSL ES 1.0.1 do not support priorities and preemption. I am not aware of a way to do what you're proposing. It could have privacy/security issues.

Similar Threads

  1. embedded audio acceleration with android ndk
    By joelc in forum OpenSL ES - embedded audio acceleration
    Replies: 1
    Last Post: 09-18-2012, 10:23 AM
  2. Sharing surfaces across processes
    By amendola in forum EGL - native graphics platform interface
    Replies: 2
    Last Post: 06-10-2009, 04:25 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Proudly hosted by Digital Ocean