Home
last modified time | relevance | path

Searched refs:channelIndexMask (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/media/java/android/media/
DAudioFormat.java533 private AudioFormat(int encoding, int sampleRate, int channelMask, int channelIndexMask) { in AudioFormat() argument
537 mChannelIndexMask = channelIndexMask; in AudioFormat()
814 public @NonNull Builder setChannelIndexMask(int channelIndexMask) { in setChannelIndexMask() argument
815 if (channelIndexMask == 0) { in setChannelIndexMask()
818 Integer.bitCount(channelIndexMask) != Integer.bitCount(mChannelMask)) { in setChannelIndexMask()
820 Integer.toHexString(channelIndexMask).toUpperCase()); in setChannelIndexMask()
822 mChannelIndexMask = channelIndexMask; in setChannelIndexMask()
DAudioTrack.java473 int channelIndexMask = 0; in AudioTrack() local
476 channelIndexMask = format.getChannelIndexMask(); in AudioTrack()
482 } else if (channelIndexMask == 0) { // if no masks at all, use stereo in AudioTrack()
490 audioParamCheck(rate, channelMask, channelIndexMask, encoding, mode); in AudioTrack()
735 private void audioParamCheck(int sampleRateInHz, int channelConfig, int channelIndexMask, in audioParamCheck() argument
762 if (channelConfig == AudioFormat.CHANNEL_INVALID && channelIndexMask != 0) { in audioParamCheck()
774 mChannelIndexMask = channelIndexMask; in audioParamCheck()
778 if ((channelIndexMask & ~indexMask) != 0) { in audioParamCheck()
780 + channelIndexMask); in audioParamCheck()
782 int channelIndexCount = Integer.bitCount(channelIndexMask); in audioParamCheck()
[all …]
DAudioRecord.java1529 int sampleRate, int channelMask, int channelIndexMask, int audioFormat, in native_setup() argument
/frameworks/base/core/jni/
Dandroid_media_AudioTrack.cpp199 jint channelPositionMask, jint channelIndexMask) in nativeChannelMaskFromJavaChannelMasks() argument
201 if (channelIndexMask != 0) { // channel index mask takes priority in nativeChannelMaskFromJavaChannelMasks()
206 channelIndexMask); in nativeChannelMaskFromJavaChannelMasks()
218 jint sampleRateInHertz, jint channelPositionMask, jint channelIndexMask, in android_media_AudioTrack_setup() argument
222 sampleRateInHertz, channelPositionMask, channelIndexMask, audioFormat, buffSizeInBytes); in android_media_AudioTrack_setup()
231 channelPositionMask, channelIndexMask); in android_media_AudioTrack_setup()
Dandroid_media_AudioRecord.cpp179 jobject jaa, jint sampleRateInHertz, jint channelMask, jint channelIndexMask, in android_media_AudioRecord_setup() argument
192 if (channelIndexMask) { in android_media_AudioRecord_setup()
196 channelIndexMask); in android_media_AudioRecord_setup()