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.java676 int frameSizeInBytes; in AudioTrack() local
678 frameSizeInBytes = mChannelCount * AudioFormat.getBytesPerSample(mAudioFormat); in AudioTrack()
680 frameSizeInBytes = 1; in AudioTrack()
682 mOffset = ((int) Math.ceil(HEADER_V2_SIZE_BYTES / frameSizeInBytes)) * frameSizeInBytes; in AudioTrack()
1384 int frameSizeInBytes; in audioBuffSizeCheck() local
1386 frameSizeInBytes = mChannelCount * AudioFormat.getBytesPerSample(mAudioFormat); in audioBuffSizeCheck()
1388 frameSizeInBytes = 1; in audioBuffSizeCheck()
1390 if ((audioBufferSize % frameSizeInBytes != 0) || (audioBufferSize < 1)) { in audioBuffSizeCheck()
1395 mNativeBufferSizeInFrames = audioBufferSize / frameSizeInBytes; in audioBuffSizeCheck()
DAudioRecord.java816 int frameSizeInBytes = mChannelCount in audioBuffSizeCheck() local
818 if ((audioBufferSize % frameSizeInBytes != 0) || (audioBufferSize < 1)) { in audioBuffSizeCheck()
820 + " (frame size " + frameSizeInBytes + ")"); in audioBuffSizeCheck()