AudioFlinger DirectThread

690 views
Skip to first unread message

Dean

unread,
Feb 7, 2011, 11:15:55 PM2/7/11
to android-porting
When is the AudioFlinger DirectThread ever invoked?

DuplicatingThread appears to be invoked whenever Bluetooth and Speaker
are active simultaneously, but am unable to have the system invoke the
DirectThread.

Glenn Kasten

unread,
Feb 9, 2011, 11:36:36 AM2/9/11
to android-porting
The direct output thread was originally intended for:
1. audio output HALs that can't do down-sampling for certain stream
types
2. voice processing e.g. echo cancellation
3. non-PCM output in low-power mode
It has been used on at least one platform a while ago, but has not
been used recently that I know of. The concept of the direct output
thread without software mixing has potential, but it may need more
design before it will be generally useful.

Rob Jones

unread,
Feb 9, 2011, 5:55:38 PM2/9/11
to android-porting
On Feb 10, 3:36 am, Glenn Kasten <gkas...@android.com> wrote:
> The direct output thread was originally intended for:
>  1. audio output HALs that can't do down-sampling for certain stream
> types
>  2. voice processing e.g. echo cancellation
>  3. non-PCM output in low-power mode
> It has been used on at least one platform a while ago, but has not
> been used recently that I know of. The concept of the direct output
> thread without software mixing has potential, but it may need more
> design before it will be generally useful.
>

There seems to be some references in the directthread to effect chain
processing. Presumably this just operates on one-effect per output
rather than effects pre and post mixing?

Cheers,

Rob

Hector Barajas

unread,
Feb 28, 2011, 12:58:02 PM2/28/11
to android-porting

Is there any direct thread for Uplink?
Reply all
Reply to author
Forward
0 new messages