summaryrefslogtreecommitdiffstats
path: root/include/media/AudioSystem.h
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2014-01-17 10:25:08 -0800
committerGlenn Kasten <gkasten@google.com>2014-03-25 15:38:25 -0700
commit85d109a4b0eddd76a8c5cee170bc2bcc99d00118 (patch)
tree063a73398f17da98b0a9ecc5923ab05bbc3fc5d9 /include/media/AudioSystem.h
parent1392eb3d1802e9f894f87d7a7387207d1b6faca1 (diff)
downloadframeworks_av-85d109a4b0eddd76a8c5cee170bc2bcc99d00118.zip
frameworks_av-85d109a4b0eddd76a8c5cee170bc2bcc99d00118.tar.gz
frameworks_av-85d109a4b0eddd76a8c5cee170bc2bcc99d00118.tar.bz2
Document AudioSystem::newAudioSessionId() failures
Change-Id: Iaa168722f362c36bdfa87fe20dc0a59b43cf1ca3
Diffstat (limited to 'include/media/AudioSystem.h')
-rw-r--r--include/media/AudioSystem.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/media/AudioSystem.h b/include/media/AudioSystem.h
index 28fdfd4..3faaa7e 100644
--- a/include/media/AudioSystem.h
+++ b/include/media/AudioSystem.h
@@ -141,7 +141,13 @@ public:
// return the number of input frames lost by HAL implementation, or 0 if the handle is invalid
static uint32_t getInputFramesLost(audio_io_handle_t ioHandle);
+ // Allocate a new audio session ID and return that new ID.
+ // If unable to contact AudioFlinger, returns AUDIO_SESSION_ALLOCATE instead.
+ // FIXME If AudioFlinger were to ever exhaust the session ID namespace,
+ // this method could fail by returning either AUDIO_SESSION_ALLOCATE
+ // or an unspecified existing session ID.
static int newAudioSessionId();
+
static void acquireAudioSessionId(int audioSession, pid_t pid);
static void releaseAudioSessionId(int audioSession, pid_t pid);