导航软件后台播放语音有杂音,卡顿
来源:互联网 发布:阿里云免费邮箱申请 编辑:程序博客网 时间:2024/04/28 14:22
由于activity一到后台就会把进程优先级调低到Background process,导致语音播报卡顿。
目前的解决方法好像只有把我们的initnavi,startnavi这2个接口放到一个service里面,
然后在Service的onCreate方法中调用improvePriority来提高进程的优先级
- private void improvePriority() {
- PendingIntent contentIntent = PendingIntent.getActivity(this, 0,
- new Intent(this, YourService.class), 0);
- Notification notification = new Notification.Builder(this)
- .setContentTitle("Foreground Service")
- .setContentText("Foreground Service Started.")
- .setSmallIcon(R.drawable.ic_launcher).setLargeIcon(null)
- .build();
- notification.contentIntent = contentIntent;
- startForeground(1, notification);
- }
0 0
- 导航软件后台播放语音有杂音,卡顿
- 语音有杂音
- srs之2.0对纯音频的流进行HLS,苹果系统播放卡顿伴有杂音的问题
- s3c2440 linux3.2.65 uda134x声卡卡顿,杂音修复
- ubuntu喇叭有杂音
- win7有杂音----彻底解决
- 从后台下载语音/视频并播放
- iOS语音播报及后台播放
- jPlayer播放后台返回的语音流
- [4] ffmpeg + SDL2 实现的有杂音的音频播放器
- qt+ffmpeg 使用qAudioOutput播放声音,解决有沙沙的杂音问题。
- DirectSound 播放声音杂音问题.
- DirectSound 播放声音杂音问题.
- 树莓派播放音频杂音问题
- 录制、播放语音时,后台音频仍旧播放中
- sox 语音格式及播放软件goldwav
- SoundTouch 变调后有杂音
- 《直播疑难杂症排查》:播放卡顿
- 产品图外边框CSS样式
- 现代操作系统——分布式系统概述
- 使用NSURLConnection解决下载的问题——同步解决下载内存峰值与进度跟进的问题(只需了解原理)
- 不超过地下通道题(Problem ID:1037)
- 解决Win10下Genymotion无法打开问题
- 导航软件后台播放语音有杂音,卡顿
- 第七周项目4队列数组
- 第九周项目2 —对称矩阵压缩存储的实现与应用(1)
- spring mvc中的@PathVariable
- 浅谈android事件分发机制
- 第九周项目1--二叉树算法库
- 水上升下降抵消题(Problem ID:1049)
- 第九周 项目3 稀疏矩阵的三元组表示的实现及应用(矩阵相加)
- c++boost中的asio介绍