summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorKalyani polepeddy <kpolep@codeaurora.org>2012-12-29 17:48:55 +0530
committerArne Coucheron <arco68@gmail.com>2013-01-21 21:28:24 +0100
commit391bf29ad1177d973cb6a9daea13677373204176 (patch)
tree1da6f0281ac8a70edb66236b6d2b1c539fb45209 /include
parent8001424a87f9b7e2dd2482b9ff257b9bff3a4d8b (diff)
downloadframeworks_av-391bf29ad1177d973cb6a9daea13677373204176.zip
frameworks_av-391bf29ad1177d973cb6a9daea13677373204176.tar.gz
frameworks_av-391bf29ad1177d973cb6a9daea13677373204176.tar.bz2
frameworks/av : Playing AAC and MP3 clips using LPA.
-AAC and MP3 clips are not playing. -AAC and MP3 are not using LPA path. -Enable LPA decoder path and implement LPAPlayer class. Change-Id: I76438319fc72c4898fad5910f8de874f89287687
Diffstat (limited to 'include')
-rw-r--r--include/media/AudioSystem.h1
-rwxr-xr-x[-rw-r--r--]include/media/IAudioFlinger.h5
-rwxr-xr-x[-rw-r--r--]include/media/stagefright/LPAPlayer.h3
3 files changed, 7 insertions, 2 deletions
diff --git a/include/media/AudioSystem.h b/include/media/AudioSystem.h
index e66fc3a..d8c57d3 100644
--- a/include/media/AudioSystem.h
+++ b/include/media/AudioSystem.h
@@ -149,6 +149,7 @@ public:
INPUT_CONFIG_CHANGED,
STREAM_CONFIG_CHANGED,
#ifdef QCOM_HARDWARE
+ A2DP_OUTPUT_STATE,
EFFECT_CONFIG_CHANGED,
#endif
NUM_CONFIG_EVENTS
diff --git a/include/media/IAudioFlinger.h b/include/media/IAudioFlinger.h
index c895c13..0700a68 100644..100755
--- a/include/media/IAudioFlinger.h
+++ b/include/media/IAudioFlinger.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
* Not a Contribution, Apache license notifications and license are retained
* for attribution purposes only.
*
@@ -210,6 +210,9 @@ public:
audio_io_handle_t dstOutput) = 0;
virtual audio_module_handle_t loadHwModule(const char *name) = 0;
+#ifdef QCOM_HARDWARE
+ virtual status_t deregisterClient(const sp<IAudioFlingerClient>& client) { return false; };
+#endif
// helpers for android.media.AudioManager.getProperty(), see description there for meaning
// FIXME move these APIs to AudioPolicy to permit a more accurate implementation
diff --git a/include/media/stagefright/LPAPlayer.h b/include/media/stagefright/LPAPlayer.h
index c351211..b0e1d31 100644..100755
--- a/include/media/stagefright/LPAPlayer.h
+++ b/include/media/stagefright/LPAPlayer.h
@@ -1,6 +1,6 @@
/*
* Copyright (C) 2009 The Android Open Source Project
- * Copyright (c) 2009-2012, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2009-2013, The Linux Foundation. All rights reserved.
* Not a Contribution, Apache license notifications and license are retained
* for attribution purposes only.
*
@@ -82,6 +82,7 @@ public:
virtual bool reachedEOS(status_t *finalStatus);
static int objectsAlive;
+ static bool mLpaInProgress;
private:
int64_t mPositionTimeMediaUs;
int64_t mPositionTimeRealUs;