diff options
author | Eric Laurent <elaurent@google.com> | 2010-06-04 00:18:07 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2010-06-04 00:18:07 -0700 |
commit | fc499ca2babff1315d0188ddfbe0268fe5d5e8ae (patch) | |
tree | 03f9ea23475d6d2ab80b1be67e050c129d473c2e /media/libmedia/AudioSystem.cpp | |
parent | 72b577e1da38b9cd5d6f70a1012db4448395188c (diff) | |
parent | dea96b8d54daf9ef76beb7e72e69c9f1c923c1d8 (diff) | |
download | frameworks_av-fc499ca2babff1315d0188ddfbe0268fe5d5e8ae.zip frameworks_av-fc499ca2babff1315d0188ddfbe0268fe5d5e8ae.tar.gz frameworks_av-fc499ca2babff1315d0188ddfbe0268fe5d5e8ae.tar.bz2 |
am 030a1553: am 2ea200c5: Merge "Issue 2667801: [Audio Effect Framework] AudioFlinger, AudioMixer AudioTrack modifications." into kraken
Diffstat (limited to 'media/libmedia/AudioSystem.cpp')
-rw-r--r-- | media/libmedia/AudioSystem.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/media/libmedia/AudioSystem.cpp b/media/libmedia/AudioSystem.cpp index 4478abd..372a927 100644 --- a/media/libmedia/AudioSystem.cpp +++ b/media/libmedia/AudioSystem.cpp @@ -364,6 +364,12 @@ unsigned int AudioSystem::getInputFramesLost(audio_io_handle_t ioHandle) { return result; } +int AudioSystem::newAudioSessionId() { + const sp<IAudioFlinger>& af = AudioSystem::get_audio_flinger(); + if (af == 0) return 0; + return af->newAudioSessionId(); +} + // --------------------------------------------------------------------------- void AudioSystem::AudioFlingerClient::binderDied(const wp<IBinder>& who) { |