作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
所以,我正在使用ExtAudioRecorder:http://i-liger.com/sites/default/files/ExtAudioRecorder.java
我的问题是在UI线程上调用了onPeriodNotification。这将是什么优雅的解决方案。在每个onPeriodNotification调用中创建新线程似乎非常繁琐。我尝试在新的Thread()中初始化记录器,但仍在UI线程上进行了调用。
最佳答案
你不能但是您可以做的是在onPeriodNotification中将消息发布到第二个线程,然后返回。
关于android - Android:在另一个线程中调用AudioRecord onPeriodicNotification,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22706802/
所以,我正在使用ExtAudioRecorder:http://i-liger.com/sites/default/files/ExtAudioRecorder.java 我的问题是在UI线程上调用了
为什么 onPeriodicNotification() 的行为如此不稳定? 背景 我正在开发适用于 Android 的音频可视化工具,它使用 AudioRecord.read()(16 位单声道)从
我想连续录制音频并将其发送到网络上的设备。我不想在发送时错过音频捕获。所以我尝试了“OnRecordPositionUpdateListener”。 在那里,我遇到了“onPeriodicNotifi
我是一名优秀的程序员,十分优秀!