如何在Audio filnger中创建混音器线程,以及如何在应用程序和音频flinger混音器之间完成映射? [英] How the mixer thread created in Audio filnger and how the mapping is done between app and audio flinger mixer?

查看:107
本文介绍了如何在Audio filnger中创建混音器线程,以及如何在应用程序和音频flinger混音器之间完成映射?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在源代码中映射此拱门.当我检查源代码时,音频闪烁器创建了多个线程,例如直接输出线程,混音器线程,卸载线程等.

但是我没有得到应该在哪里更改配置以创建多个混合器线程以及如何在应用程序和混合器线程之间映射数据的信息,如下图所示.

仅提及此拱门的来源是来自-

解决方案

检查以下功能:

  1. AudioFlinger :: PlaybackTrack :: createTrack_l 用于创建线程
  2. AudioPolicyManager :: selectOutput 进行映射

I am trying to map this arch in the source code. As I checked in source code there are multiple threads created by audio flinger like direct output thread, mixer thread, offload thread, etc.

But I am not getting where should I change in configuration to create multiple mixer thread and how to map the data between app and mixer thread as shown in the below diagram.

just to mention the source of this arch is from- https://source.android.com/devices/automotive/audio

解决方案

Check these functions:

  1. AudioFlinger::PlaybackTrack::createTrack_l for thread creation
  2. AudioPolicyManager::selectOutput for the mapping

这篇关于如何在Audio filnger中创建混音器线程,以及如何在应用程序和音频flinger混音器之间完成映射?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆