Home
last modified time | relevance | path

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

/frameworks/base/core/jni/
Dandroid_media_AudioRecord.cpp48 int PCM16; //... format constants member
143 if ((audioFormat != javaAudioRecordFields.PCM16) in android_media_AudioRecord_setup()
149 int bytesPerSample = audioFormat==javaAudioRecordFields.PCM16 ? 2 : 1; in android_media_AudioRecord_setup()
150 int format = audioFormat==javaAudioRecordFields.PCM16 ? in android_media_AudioRecord_setup()
493 (audioFormat == javaAudioRecordFields.PCM16 ? in android_media_AudioRecord_get_min_buff_size()
503 return frameCount * nbChannels * (audioFormat == javaAudioRecordFields.PCM16 ? 2 : 1); in android_media_AudioRecord_get_min_buff_size()
597 JAVA_CONST_PCM16_NAME, &(javaAudioRecordFields.PCM16)) in register_android_media_AudioRecord()
Dandroid_media_AudioTrack.cpp50 int PCM16; //... format constants member
223 if ((audioFormat != javaAudioTrackFields.PCM16) && (audioFormat != javaAudioTrackFields.PCM8)) { in android_media_AudioTrack_native_setup()
236 audioFormat = javaAudioTrackFields.PCM16; in android_media_AudioTrack_native_setup()
242 int bytesPerSample = audioFormat == javaAudioTrackFields.PCM16 ? 2 : 1; in android_media_AudioTrack_native_setup()
243 int format = audioFormat == javaAudioTrackFields.PCM16 ? in android_media_AudioTrack_native_setup()
491 if (audioFormat == javaAudioTrackFields.PCM16) { in writeToTrack()
808 return frameCount * nbChannels * (audioFormat == javaAudioTrackFields.PCM16 ? 2 : 1); in android_media_AudioTrack_get_min_buff_size()
982 JAVA_CONST_PCM16_NAME, &(javaAudioTrackFields.PCM16)) in register_android_media_AudioTrack()