Home
last modified time | relevance | path

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

/frameworks/base/media/java/android/media/
DAudioTrack.java640 int frameSizeInBytes; in AudioTrack() local
642 frameSizeInBytes = mChannelCount * AudioFormat.getBytesPerSample(mAudioFormat); in AudioTrack()
644 frameSizeInBytes = 1; in AudioTrack()
646 mOffset = ((int) Math.ceil(HEADER_V2_SIZE_BYTES / frameSizeInBytes)) * frameSizeInBytes; in AudioTrack()
1202 int frameSizeInBytes; in audioBuffSizeCheck() local
1204 frameSizeInBytes = mChannelCount * AudioFormat.getBytesPerSample(mAudioFormat); in audioBuffSizeCheck()
1206 frameSizeInBytes = 1; in audioBuffSizeCheck()
1208 if ((audioBufferSize % frameSizeInBytes != 0) || (audioBufferSize < 1)) { in audioBuffSizeCheck()
1213 mNativeBufferSizeInFrames = audioBufferSize / frameSizeInBytes; in audioBuffSizeCheck()
DAudioRecord.java728 int frameSizeInBytes = mChannelCount in audioBuffSizeCheck() local
730 if ((audioBufferSize % frameSizeInBytes != 0) || (audioBufferSize < 1)) { in audioBuffSizeCheck()
732 + " (frame size " + frameSizeInBytes + ")"); in audioBuffSizeCheck()