diff options
author | Glenn Kasten <gkasten@google.com> | 2015-03-20 08:55:18 -0700 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2015-03-23 08:02:59 -0700 |
commit | 32860f77787f41abac08afdfc2592272ccc31bcb (patch) | |
tree | 330b65ddca5dd7b541565b67944e739f5dc0fc8e /media/libmedia/AudioRecord.cpp | |
parent | 40bc906252974d0b389ae4a147232d0c9a97193f (diff) | |
download | frameworks_av-32860f77787f41abac08afdfc2592272ccc31bcb.zip frameworks_av-32860f77787f41abac08afdfc2592272ccc31bcb.tar.gz frameworks_av-32860f77787f41abac08afdfc2592272ccc31bcb.tar.bz2 |
Deprecate AudioRecord::getInput() and AudioTrack::getOutput()
Does not completely fix the bug, but is a step in the right direction.
Bug: 12593118
Change-Id: Id591cd700ab58fd927ae44c71c81dac55b5cac2d
Diffstat (limited to 'media/libmedia/AudioRecord.cpp')
-rw-r--r-- | media/libmedia/AudioRecord.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/media/libmedia/AudioRecord.cpp b/media/libmedia/AudioRecord.cpp index eb9f1f0..55a448e 100644 --- a/media/libmedia/AudioRecord.cpp +++ b/media/libmedia/AudioRecord.cpp @@ -416,7 +416,7 @@ status_t AudioRecord::getPosition(uint32_t *position) const uint32_t AudioRecord::getInputFramesLost() const { // no need to check mActive, because if inactive this will return 0, which is what we want - return AudioSystem::getInputFramesLost(getInput()); + return AudioSystem::getInputFramesLost(getInputPrivate()); } // ------------------------------------------------------------------------- @@ -712,7 +712,7 @@ void AudioRecord::releaseBuffer(Buffer* audioBuffer) // the server does not automatically disable recorder on overrun, so no need to restart } -audio_io_handle_t AudioRecord::getInput() const +audio_io_handle_t AudioRecord::getInputPrivate() const { AutoMutex lock(mLock); return mInput; |