diff options
author | Marco Nelissen <marcone@google.com> | 2011-08-02 13:33:41 -0700 |
---|---|---|
committer | Marco Nelissen <marcone@google.com> | 2011-08-09 10:21:10 -0700 |
commit | c74b93fdf3ddb6fdab7878edab4d304fb14917f9 (patch) | |
tree | 96a1db2deffc309c16b63d5e4dc1fda165b6ed8e /include/media | |
parent | a4418e0fd94f27c0b40abe17d42af0880cb3effb (diff) | |
download | frameworks_base-c74b93fdf3ddb6fdab7878edab4d304fb14917f9.zip frameworks_base-c74b93fdf3ddb6fdab7878edab4d304fb14917f9.tar.gz frameworks_base-c74b93fdf3ddb6fdab7878edab4d304fb14917f9.tar.bz2 |
Keep effects sessions active when the caller dies.
Don't remove effects until the session they are in goes away or all
AudioEffects have been explicitly released. This allows the control
panel process to die without stopping the effects.
Change-Id: I4496e5df080230ca1af149dec95c1309ab8ea888
Diffstat (limited to 'include/media')
-rw-r--r-- | include/media/AudioSystem.h | 2 | ||||
-rw-r--r-- | include/media/IAudioFlinger.h | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/include/media/AudioSystem.h b/include/media/AudioSystem.h index f20e234..eb22e32 100644 --- a/include/media/AudioSystem.h +++ b/include/media/AudioSystem.h @@ -108,6 +108,8 @@ public: static unsigned int getInputFramesLost(audio_io_handle_t ioHandle); static int newAudioSessionId(); + static void acquireAudioSessionId(int audioSession); + static void releaseAudioSessionId(int audioSession); // types of io configuration change events received with ioConfigChanged() enum io_config_event { diff --git a/include/media/IAudioFlinger.h b/include/media/IAudioFlinger.h index 4037c46..9e3cb7f 100644 --- a/include/media/IAudioFlinger.h +++ b/include/media/IAudioFlinger.h @@ -139,6 +139,9 @@ public: virtual int newAudioSessionId() = 0; + virtual void acquireAudioSessionId(int audioSession) = 0; + virtual void releaseAudioSessionId(int audioSession) = 0; + virtual status_t queryNumberEffects(uint32_t *numEffects) = 0; virtual status_t queryEffect(uint32_t index, effect_descriptor_t *pDescriptor) = 0; |