AudioWaves icon indicating copy to clipboard operation
AudioWaves copied to clipboard

Cannot use second audio recording simultaneously

Open jiulian opened this issue 8 years ago • 7 comments

jiulian avatar Mar 21 '16 08:03 jiulian

What do you mean by second audio recording?

bhargavms avatar Jun 30 '16 13:06 bhargavms

Hi, i have the same problematic :

  • I use doubango library for make SIP call
  • I use your lib for display level volume

However, when I call someone the application starts to freeze and my voice is not transferring Once I remove the layout of your library , it works again.

have you got a solution for use MIC from 2 thread ?

thx

Perceval-de-Galles avatar Aug 02 '16 11:08 Perceval-de-Galles

I have the same problem: When using a MediaRecorder to record voice, and doing startListening() when the recording starts I get the following error for the recorder:

E/MediaRecorder: start failed: -38

Removing the lib solves the issue.

LaurieScheepers avatar May 18 '17 15:05 LaurieScheepers

我也遇到了这个问题,不过我重写了IVisualizer和Visualizer这两个类。 将Visualizer中的prepare()里面的 AudioDispatcher dispatcher = AudioDispatcherFactory.fromDefaultMicrophone(22050, 1024, 0); 设为全局变量,并且修改stopListening()为: @Override public void stopListening() { dispatcher.stop(); listeningThread.interrupt(); } 最后再使用这个Visualizer在XML布局中,并且在我使用过这个lib的Activity中 @Override protected void onDestroy() { super.onDestroy(); visualizer.stopListening(); visualizer = null; } 就解决了这个问题。

IshinagiMoeta avatar Aug 23 '17 02:08 IshinagiMoeta

我也遇到了这个问题,不过我重写了IVisualizer和Visualizer这两个类。 将Visualizer中的prepare()里面的 AudioDispatcher dispatcher = AudioDispatcherFactory.fromDefaultMicrophone(22050, 1024, 0); 设为全局变量,并且修改stopListening()为: @override public void stopListening() { dispatcher.stop(); listeningThread.interrupt(); } 最后再使用这个Visualizer在XML布局中,并且在我使用过这个lib的Activity中 @override protected void onDestroy() { super.onDestroy(); visualizer.stopListening(); visualizer = null; } 就解决了这个问题。

请贴一下重写之后的类么?或者能具体说下重写并修改了哪些地方了?单单只是修改stopLIstening 还是一样会崩溃。谢谢。

longzekai avatar Jul 21 '20 08:07 longzekai

  您好,您发的邮件已经收到,请放心

xi23da avatar Dec 25 '23 23:12 xi23da