question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

wavsetupRecorder();
recorder.startRecording();

E/AudioRecord: Could not get audio input for record source 1, sample rate 44100, format 0x1, channel mask 0x10, session 161, flags 0
E/AudioRecord-JNI: Error creating AudioRecord instance: initialization check failed with status -22.
E/android.media.AudioRecord: Error code -20 when initializing native AudioRecord object.
E/AndroidRuntime: FATAL EXCEPTION: Thread-367
                  Process: com PID: 3241
                  java.lang.IllegalStateException: startRecording() called on an uninitialized AudioRecord.
                      at android.media.AudioRecord.startRecording(AudioRecord.java:885)
                      at omrecorder.PullTransport$AbstractPullTransport.preparedSourceToBePulled(PullTransport.java:89)
                      at omrecorder.PullTransport$AbstractPullTransport.start(PullTransport.java:70)
                      at omrecorder.AbstractRecorder$1.run(AbstractRecorder.java:29)
                      at java.lang.Thread.run(Thread.java:818)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:19 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
kailash09dabhicommented, Feb 21, 2017

I am glad you solved it you can explain more here how you solved to help other users. If you want to release the audio source you can do by simply like this:

 pulltransport.audioSource().release();
0reactions
kenchoongcommented, Sep 6, 2020

Hey @nzala , how you call pulltransport.audioSource().release(); in your project? cause I call event call for audioSource() to pullTransport… can you give me some hint?

Read more comments on GitHub >

github_iconTop Results From Across the Web

startRecording(handler:) - Documentation - Apple Developer
Call startRecording(handler:) on an instance of the recorder to begin recording. When startRecording(handler:) is first called, an alert window appears ...
Read more >
AudioRecord - Android Developers
public void startRecording (MediaSyncEvent syncEvent). Starts recording from the AudioRecord instance when the specified synchronization event occurs on the ...
Read more >
Scripting API: Animator.StartRecording - Unity - Manual
Sets the animator in recording mode, and allocates a circular buffer of size frameCount. After this call, the recorder starts collecting up to...
Read more >
startRecording() - Docs - Daily.co
Using our video API, the startRecording() method starts recording a Daily video call built on WebRTC.
Read more >
MATLAB startRecording - MathWorks
startRecording ( target_object ) starts a simulation run in the Simulation Data ... is enabled by using the startRecording function, Start Recording button, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found