Home
last modified time | relevance | path

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

/frameworks/base/media/java/android/media/
DAudioFormat.java722 int frameSizeInBytes = 1; in AudioFormat() local
724 frameSizeInBytes = getBytesPerSample(mEncoding) * channelCount; in AudioFormat()
730 mFrameSizeInBytes = frameSizeInBytes != 0 ? frameSizeInBytes : 1; in AudioFormat()
DAudioTrack.java822 int frameSizeInBytes; in AudioTrack() local
824 frameSizeInBytes = mChannelCount * AudioFormat.getBytesPerSample(mAudioFormat); in AudioTrack()
826 frameSizeInBytes = 1; in AudioTrack()
828 mOffset = ((int) Math.ceil(HEADER_V2_SIZE_BYTES / frameSizeInBytes)) * frameSizeInBytes; in AudioTrack()
1777 int frameSizeInBytes; in audioBuffSizeCheck() local
1779 frameSizeInBytes = mChannelCount * AudioFormat.getBytesPerSample(mAudioFormat); in audioBuffSizeCheck()
1781 frameSizeInBytes = 1; in audioBuffSizeCheck()
1783 if ((audioBufferSize % frameSizeInBytes != 0) || (audioBufferSize < 1)) { in audioBuffSizeCheck()
1788 mNativeBufferSizeInFrames = audioBufferSize / frameSizeInBytes; in audioBuffSizeCheck()
DAudioRecord.java872 int frameSizeInBytes = mChannelCount in audioBuffSizeCheck() local
874 if ((audioBufferSize % frameSizeInBytes != 0) || (audioBufferSize < 1)) { in audioBuffSizeCheck()
876 + " (frame size " + frameSizeInBytes + ")"); in audioBuffSizeCheck()