Home
last modified time | relevance | path

Searched refs:frameSizeInBytes (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/media/java/android/media/
DAudioFormat.java1037 int frameSizeInBytes = 1; in AudioFormat() local
1039 frameSizeInBytes = getBytesPerSample(mEncoding) * channelCount; in AudioFormat()
1045 mFrameSizeInBytes = frameSizeInBytes != 0 ? frameSizeInBytes : 1; in AudioFormat()
DAudioTrack.java893 int frameSizeInBytes; in AudioTrack() local
895 frameSizeInBytes = mChannelCount * AudioFormat.getBytesPerSample(mAudioFormat); in AudioTrack()
897 frameSizeInBytes = 1; in AudioTrack()
899 mOffset = ((int) Math.ceil(HEADER_V2_SIZE_BYTES / frameSizeInBytes)) * frameSizeInBytes; in AudioTrack()
2012 int frameSizeInBytes; in audioBuffSizeCheck() local
2014 frameSizeInBytes = mChannelCount * AudioFormat.getBytesPerSample(mAudioFormat); in audioBuffSizeCheck()
2016 frameSizeInBytes = 1; in audioBuffSizeCheck()
2018 if ((audioBufferSize % frameSizeInBytes != 0) || (audioBufferSize < 1)) { in audioBuffSizeCheck()
2023 mNativeBufferSizeInFrames = audioBufferSize / frameSizeInBytes; in audioBuffSizeCheck()