diff options
author | Eric Laurent <elaurent@google.com> | 2014-07-03 16:37:08 -0700 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2014-07-03 16:46:52 -0700 |
commit | 665470b36f202bcc8ee2f7417f68fd2608dd07c1 (patch) | |
tree | b2ab9efffb5af2d730c1899c23c1706bf4793c6d /services | |
parent | 5ba4440c11eb975ec0e104e0af1981838f42f57c (diff) | |
download | frameworks_av-665470b36f202bcc8ee2f7417f68fd2608dd07c1.zip frameworks_av-665470b36f202bcc8ee2f7417f68fd2608dd07c1.tar.gz frameworks_av-665470b36f202bcc8ee2f7417f68fd2608dd07c1.tar.bz2 |
audio: deprecate audio_stream_frame_size()
Bug: 15000850.
Change-Id: I955a6efa620b8f70fa5193c7853cbe88e879c9c3
Diffstat (limited to 'services')
-rwxr-xr-x | services/audioflinger/Threads.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/services/audioflinger/Threads.cpp b/services/audioflinger/Threads.cpp index 67a0119..324f3ae 100755 --- a/services/audioflinger/Threads.cpp +++ b/services/audioflinger/Threads.cpp @@ -1815,7 +1815,7 @@ void AudioFlinger::PlaybackThread::readOutputParameters_l() LOG_FATAL("HAL format %#x not supported for mixed output", mFormat); } - mFrameSize = audio_stream_frame_size(&mOutput->stream->common); + mFrameSize = audio_stream_out_frame_size(mOutput->stream); mBufferSize = mOutput->stream->common.get_buffer_size(&mOutput->stream->common); mFrameCount = mBufferSize / mFrameSize; if (mFrameCount & 15) { @@ -4466,7 +4466,7 @@ AudioFlinger::PlaybackThread::mixer_state AudioFlinger::OffloadThread::prepareTr size_t audioHALFrames = (mOutput->stream->get_latency(mOutput->stream)*mSampleRate) / 1000; size_t framesWritten = - mBytesWritten / audio_stream_frame_size(&mOutput->stream->common); + mBytesWritten / audio_stream_out_frame_size(mOutput->stream); track->presentationComplete(framesWritten, audioHALFrames); track->reset(); tracksToRemove->add(track); @@ -6011,7 +6011,7 @@ void AudioFlinger::RecordThread::readInputParameters_l() if (mFormat != AUDIO_FORMAT_PCM_16_BIT) { ALOGE("HAL format %#x not supported; must be AUDIO_FORMAT_PCM_16_BIT", mFormat); } - mFrameSize = audio_stream_frame_size(&mInput->stream->common); + mFrameSize = audio_stream_in_frame_size(mInput->stream); mBufferSize = mInput->stream->common.get_buffer_size(&mInput->stream->common); mFrameCount = mBufferSize / mFrameSize; // This is the formula for calculating the temporary buffer size. |