diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/media/AudioSystem.h | 12 | ||||
-rw-r--r-- | include/media/IAudioFlinger.h | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/include/media/AudioSystem.h b/include/media/AudioSystem.h index 9ea18de..2e3cab0 100644 --- a/include/media/AudioSystem.h +++ b/include/media/AudioSystem.h @@ -139,12 +139,12 @@ 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(); + // Allocate a new unique ID for use as an audio session ID or I/O handle. + // If unable to contact AudioFlinger, returns AUDIO_UNIQUE_ID_ALLOCATE instead. + // FIXME If AudioFlinger were to ever exhaust the unique ID namespace, + // this method could fail by returning either AUDIO_UNIQUE_ID_ALLOCATE + // or an unspecified existing unique ID. + static audio_unique_id_t newAudioUniqueId(); static void acquireAudioSessionId(int audioSession, pid_t pid); static void releaseAudioSessionId(int audioSession, pid_t pid); diff --git a/include/media/IAudioFlinger.h b/include/media/IAudioFlinger.h index 58fb84a..82ec09c 100644 --- a/include/media/IAudioFlinger.h +++ b/include/media/IAudioFlinger.h @@ -176,7 +176,7 @@ public: virtual uint32_t getInputFramesLost(audio_io_handle_t ioHandle) const = 0; - virtual int newAudioSessionId() = 0; + virtual audio_unique_id_t newAudioUniqueId() = 0; virtual void acquireAudioSessionId(int audioSession, pid_t pid) = 0; virtual void releaseAudioSessionId(int audioSession, pid_t pid) = 0; |