summaryrefslogtreecommitdiffstats
path: root/media/libmedia/AudioSystem.cpp
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2014-07-27 18:38:22 -0700
committerEric Laurent <elaurent@google.com>2014-07-28 21:43:16 +0000
commitde3f8392fbf380ba6f09d009b00d7172477389a2 (patch)
tree77687cb28cf7dfb34ebb6317e246b3cad5672b86 /media/libmedia/AudioSystem.cpp
parent03524dcc1215b2c468f5c8c8abe6f1c26239fd71 (diff)
downloadframeworks_av-de3f8392fbf380ba6f09d009b00d7172477389a2.zip
frameworks_av-de3f8392fbf380ba6f09d009b00d7172477389a2.tar.gz
frameworks_av-de3f8392fbf380ba6f09d009b00d7172477389a2.tar.bz2
rename AudioSystem::newAudioSessionId()
Rename AudioSystem::newAudioSessionId() to AudioSystem::newAudioUniqueId() as it can be used also for I/O handles. Bug: 12378680. Change-Id: I611ea3b5eb57a4b0774437f477ee87dc4ccc2cc2
Diffstat (limited to 'media/libmedia/AudioSystem.cpp')
-rw-r--r--media/libmedia/AudioSystem.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/media/libmedia/AudioSystem.cpp b/media/libmedia/AudioSystem.cpp
index fd5824b..0d61885 100644
--- a/media/libmedia/AudioSystem.cpp
+++ b/media/libmedia/AudioSystem.cpp
@@ -427,11 +427,11 @@ uint32_t AudioSystem::getInputFramesLost(audio_io_handle_t ioHandle)
return result;
}
-int AudioSystem::newAudioSessionId()
+audio_unique_id_t AudioSystem::newAudioUniqueId()
{
const sp<IAudioFlinger>& af = AudioSystem::get_audio_flinger();
- if (af == 0) return AUDIO_SESSION_ALLOCATE;
- return af->newAudioSessionId();
+ if (af == 0) return AUDIO_UNIQUE_ID_ALLOCATE;
+ return af->newAudioUniqueId();
}
void AudioSystem::acquireAudioSessionId(int audioSession, pid_t pid)