summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/AudioFlinger.h
diff options
context:
space:
mode:
Diffstat (limited to 'services/audioflinger/AudioFlinger.h')
-rw-r--r--services/audioflinger/AudioFlinger.h19
1 files changed, 16 insertions, 3 deletions
diff --git a/services/audioflinger/AudioFlinger.h b/services/audioflinger/AudioFlinger.h
index d6a3815..5b718d7 100644
--- a/services/audioflinger/AudioFlinger.h
+++ b/services/audioflinger/AudioFlinger.h
@@ -245,10 +245,11 @@ public:
uint32_t flags);
#ifdef QCOM_HARDWARE
- void applyEffectsOn(void *token,
+ bool applyEffectsOn(void *token,
int16_t *buffer1,
int16_t *buffer2,
- int size);
+ int size,
+ bool force);
#endif
// end of IAudioFlinger interface
@@ -427,6 +428,9 @@ private:
audio_format_t format,
audio_channel_mask_t channelMask,
int frameCount,
+#ifdef QCOM_ENHANCED_AUDIO
+ uint32_t flags,
+#endif
const sp<IMemory>& sharedBuffer,
int sessionId);
virtual ~TrackBase();
@@ -506,6 +510,9 @@ private:
// support dynamic rates, the current value is in control block
const audio_format_t mFormat;
bool mStepServerFailed;
+#ifdef QCOM_ENHANCED_AUDIO
+ uint32_t mFlags;
+#endif
const int mSessionId;
uint8_t mChannelCount;
audio_channel_mask_t mChannelMask;
@@ -1483,6 +1490,7 @@ private:
};
List<BufferInfo> mBufPool;
List<BufferInfo> mEffectsPool;
+ void *mEffectsThreadScratchBuffer;
void allocateBufPool();
void deallocateBufPool();
@@ -1521,7 +1529,8 @@ private:
sp<AudioFlinger> mAudioFlinger;
sp<AudioFlingerDirectTrackClient> mAudioFlingerClient;
- void clearPowerManager();
+ void clearPowerManager();
+
class PMDeathRecipient : public IBinder::DeathRecipient {
public:
PMDeathRecipient(void *obj){parentClass = (DirectAudioTrack *)obj;}
@@ -1592,6 +1601,9 @@ private:
audio_format_t format,
audio_channel_mask_t channelMask,
int frameCount,
+#ifdef QCOM_ENHANCED_AUDIO
+ uint32_t flags,
+#endif
int sessionId);
virtual ~RecordTrack();
@@ -1722,6 +1734,7 @@ private:
// when < 0, maximum frames to drop before starting capture even if sync event is
// not received
ssize_t mFramestoDrop;
+ int16_t mInputSource;
};
// server side of the client's IAudioRecord