Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot use second audio recording simultaneously #3

Open
jiulian opened this issue Mar 21, 2016 · 7 comments
Open

Cannot use second audio recording simultaneously #3

jiulian opened this issue Mar 21, 2016 · 7 comments

Comments

@jiulian
Copy link

jiulian commented Mar 21, 2016

No description provided.

@bhargavms
Copy link

What do you mean by second audio recording?

@Perceval-de-Galles
Copy link

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

@LaurieScheepers
Copy link

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.

@IshinagiMoeta
Copy link

我也遇到了这个问题,不过我重写了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;
}
就解决了这个问题。

@longzekai
Copy link

我也遇到了这个问题,不过我重写了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 还是一样会崩溃。谢谢。

@xi23da
Copy link

xi23da commented Dec 25, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants
@LaurieScheepers @longzekai @Perceval-de-Galles @bhargavms @jiulian @xi23da @IshinagiMoeta and others