diff options
| author | Eric Laurent <elaurent@google.com> | 2014-11-10 23:20:25 +0000 | 
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2014-11-10 23:20:25 +0000 | 
| commit | ae6965ae7664aaea489a8d58358035610075c9af (patch) | |
| tree | fd4406ad0fbd33d98a2cca8407aad354f9baa58b /include | |
| parent | 42f785c5d5ae596d781171327c98c541f0517feb (diff) | |
| parent | 3aef35600523eb6b4ccc8086a8913e80701a031a (diff) | |
| download | frameworks_av-ae6965ae7664aaea489a8d58358035610075c9af.zip frameworks_av-ae6965ae7664aaea489a8d58358035610075c9af.tar.gz frameworks_av-ae6965ae7664aaea489a8d58358035610075c9af.tar.bz2  | |
am 3aef3560: am e360f0f6: IAudioPolicyService: bound array size in queryDefaultPreProcessing
* commit '3aef35600523eb6b4ccc8086a8913e80701a031a':
  IAudioPolicyService: bound array size in queryDefaultPreProcessing
Diffstat (limited to 'include')
| -rw-r--r-- | include/media/AudioEffect.h | 9 | 
1 files changed, 7 insertions, 2 deletions
diff --git a/include/media/AudioEffect.h b/include/media/AudioEffect.h index 05d834d..eef1b41 100644 --- a/include/media/AudioEffect.h +++ b/include/media/AudioEffect.h @@ -133,10 +133,11 @@ public:       *       * Returned value       *   *descriptor updated with descriptors of pre processings enabled by default -     *   *count      number of descriptors returned if returned status is N_ERROR. +     *   *count      number of descriptors returned if returned status is NO_ERROR.       *               total number of pre processing enabled by default if returned status is       *               NO_MEMORY. This happens if the count passed as input is less than the number -     *               of descriptors to return +     *               of descriptors to return. +     *               *count is limited to kMaxPreProcessing on return.       */      static status_t queryDefaultPreProcessing(int audioSession,                                                effect_descriptor_t *descriptors, @@ -390,6 +391,10 @@ public:        */       static status_t guidToString(const effect_uuid_t *guid, char *str, size_t maxLen); +     // kMaxPreProcessing is a reasonable value for the maximum number of preprocessing effects +     // that can be applied simultaneously. +     static const uint32_t kMaxPreProcessing = 10; +  protected:       bool                    mEnabled;           // enable state       int32_t                 mSessionId;         // audio session ID  | 
