From 6dde130280d6ead297170211b005cc809e7f7bde Mon Sep 17 00:00:00 2001 From: Steve Kondik Date: Wed, 9 Dec 2015 20:44:26 -0800 Subject: stagefright: Resurrect PCM offload * Forward-port the open-source code from L which was moved to closed-source in M. This is being done out of necessity- the architecture chosen by Qualcomm is not optimal and doesn't work well with a singular codebase which attempts to service a large number of devices. * This patch brings in the code to support PCM offload (AudioFlinger bypass). This allows for playback of high resolution clips without decimation stages, and enables reduced power consumption for audio pipelines which take advantage of the Hexagon DSP (effects). Change-Id: I0ef15fc3df538ab723f3c12ce0ed71d0e607c99e --- media/libmediaplayerservice/nuplayer/NuPlayerDecoderPassThrough.h | 1 + 1 file changed, 1 insertion(+) (limited to 'media/libmediaplayerservice/nuplayer/NuPlayerDecoderPassThrough.h') diff --git a/media/libmediaplayerservice/nuplayer/NuPlayerDecoderPassThrough.h b/media/libmediaplayerservice/nuplayer/NuPlayerDecoderPassThrough.h index 629e266..fbc4087 100644 --- a/media/libmediaplayerservice/nuplayer/NuPlayerDecoderPassThrough.h +++ b/media/libmediaplayerservice/nuplayer/NuPlayerDecoderPassThrough.h @@ -69,6 +69,7 @@ private: size_t mPendingBuffersToDrain; size_t mCachedBytes; AString mComponentName; + audio_format_t mPCMFormat; bool isStaleReply(const sp &msg); bool isDoneFetching() const; -- cgit v1.1