/frameworks/base/core/java/android/speech/tts/ |
SynthesisCallback.java | 47 * @param audioFormat Audio format of the generated audio. Must be one of 48 * the ENCODING_ constants defined in {@link android.media.AudioFormat}. 52 public int start(int sampleRateInHz, int audioFormat, int channelCount);
|
FileSynthesisCallback.java | 18 import android.media.AudioFormat; 99 public int start(int sampleRateInHz, int audioFormat, int channelCount) { 101 Log.d(TAG, "FileSynthesisRequest.start(" + sampleRateInHz + "," + audioFormat 115 mAudioFormat = audioFormat; 198 private ByteBuffer makeWavHeader(int sampleRateInHz, int audioFormat, int channelCount, 200 // TODO: is AudioFormat.ENCODING_DEFAULT always the same as ENCODING_PCM_16BIT? 201 int sampleSizeInBytes = (audioFormat == AudioFormat.ENCODING_PCM_8BIT ? 1 : 2);
|
BlockingAudioTrack.java | 5 import android.media.AudioFormat; 77 int audioFormat, int channelCount, 81 mAudioFormat = audioFormat; 177 return AudioFormat.CHANNEL_OUT_MONO; 179 return AudioFormat.CHANNEL_OUT_STEREO; 232 private static int getBytesPerFrame(int audioFormat) { 233 if (audioFormat == AudioFormat.ENCODING_PCM_8BIT) { 235 } else if (audioFormat == AudioFormat.ENCODING_PCM_16BIT) [all...] |
PlaybackSynthesisCallback.java | 137 public int start(int sampleRateInHz, int audioFormat, int channelCount) { 139 Log.d(TAG, "start(" + sampleRateInHz + "," + audioFormat 155 mStreamType, sampleRateInHz, audioFormat, channelCount, mVolume, mPan,
|
SynthesisPlaybackQueueItem.java | 67 int audioFormat, int channelCount, 78 mAudioTrack = new BlockingAudioTrack(streamType, sampleRate, audioFormat,
|
/external/chromium_org/media/base/android/java/src/org/chromium/media/ |
AudioRecordInput.java | 8 import android.media.AudioFormat; 137 channelConfig = AudioFormat.CHANNEL_IN_MONO; 139 channelConfig = AudioFormat.CHANNEL_IN_STEREO; 145 int audioFormat; 147 audioFormat = AudioFormat.ENCODING_PCM_8BIT; 149 audioFormat = AudioFormat.ENCODING_PCM_16BIT; 158 int minBufferSize = AudioRecord.getMinBufferSize(mSampleRate, channelConfig, audioFormat); 172 audioFormat, [all...] |
/frameworks/base/media/java/android/media/ |
AudioRecord.java | 136 * @see AudioFormat#ENCODING_PCM_8BIT 137 * @see AudioFormat#ENCODING_PCM_16BIT 195 * See {@link AudioFormat#CHANNEL_IN_MONO} and 196 * {@link AudioFormat#CHANNEL_IN_STEREO}. {@link AudioFormat#CHANNEL_IN_MONO} is guaranteed 198 * @param audioFormat the format in which the audio data is represented. 199 * See {@link AudioFormat#ENCODING_PCM_16BIT} and 200 * {@link AudioFormat#ENCODING_PCM_8BIT} 208 public AudioRecord(int audioSource, int sampleRateInHz, int channelConfig, int audioFormat, 218 audioParamCheck(audioSource, sampleRateInHz, channelConfig, audioFormat); [all...] |
AudioTrack.java | 187 private int mChannels = AudioFormat.CHANNEL_OUT_MONO; 204 private int mChannelConfiguration = AudioFormat.CHANNEL_OUT_MONO; 207 * @see AudioFormat#ENCODING_PCM_8BIT 208 * @see AudioFormat#ENCODING_PCM_16BIT 210 private int mAudioFormat = AudioFormat.ENCODING_PCM_16BIT; 244 * See {@link AudioFormat#CHANNEL_OUT_MONO} and 245 * {@link AudioFormat#CHANNEL_OUT_STEREO} 246 * @param audioFormat the format in which the audio data is represented. 247 * See {@link AudioFormat#ENCODING_PCM_16BIT} and 248 * {@link AudioFormat#ENCODING_PCM_8BIT [all...] |
/frameworks/base/core/jni/ |
android_media_AudioRecord.cpp | 52 // keep these values in sync with AudioFormat.java 163 jint audioFormat, jint buffSizeInBytes, jintArray jSession) 166 //ALOGV("sampleRate=%d, audioFormat=%d, channel mask=%x, buffSizeInBytes=%d", 167 // sampleRateInHertz, audioFormat, channelMask, buffSizeInBytes); 176 if ((audioFormat != ENCODING_PCM_16BIT) 177 && (audioFormat != ENCODING_PCM_8BIT)) { 182 int bytesPerSample = audioFormat == ENCODING_PCM_16BIT ? 2 : 1; 183 audio_format_t format = audioFormat == ENCODING_PCM_16BIT ? 508 jint sampleRateInHertz, jint nbChannels, jint audioFormat) { 511 sampleRateInHertz, nbChannels, audioFormat); [all...] |
android_media_AudioTrack.cpp | 58 // keep these values in sync with AudioFormat.java 200 jint audioFormat, jint buffSizeInBytes, jint memoryMode, jintArray jSession) 202 ALOGV("sampleRate=%d, audioFormat(from Java)=%d, channel mask=%x, buffSize=%d", 203 sampleRateInHertz, audioFormat, javaChannelMask, buffSizeInBytes); 247 if ((audioFormat != ENCODING_PCM_16BIT) && (audioFormat != ENCODING_PCM_8BIT)) { 256 if ((audioFormat == ENCODING_PCM_8BIT) 261 audioFormat = ENCODING_PCM_16BIT; 267 int bytesPerSample = audioFormat == ENCODING_PCM_16BIT ? 2 : 1; 268 audio_format_t format = audioFormat == ENCODING_PCM_16BIT [all...] |
/external/svox/pico/compat/jni/ |
tts.h | 122 android_tts_audio_format_t audioFormat,
|
/frameworks/av/media/libstagefright/ |
AudioPlayer.cpp | 133 audio_format_t audioFormat = AUDIO_FORMAT_PCM_16_BIT; 136 if (mapMimeToAudioFormat(audioFormat, mime) != OK) { 138 audioFormat = AUDIO_FORMAT_INVALID; 140 ALOGV("Mime type \"%s\" mapped to audio_format 0x%x", mime, audioFormat); 167 offloadInfo.format = audioFormat; 175 mSampleRate, numChannels, channelMask, audioFormat,
|
/frameworks/av/services/audioflinger/ |
test-resample.cpp | 39 audioFormat = 1; 54 uint16_t audioFormat; // 1=PCM
|
/frameworks/base/media/java/android/media/videoeditor/ |
AudioTrack.java | 162 switch (mMANativeHelper.getAudioCodecType(properties.audioFormat)) { 183 mAudioType = properties.audioFormat;
|
MediaArtistNativeHelper.java | 176 public final class AudioFormat { [all...] |
MediaVideoItem.java | 180 mAudioType = mMANativeHelper.getAudioCodecType(properties.audioFormat);
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/ |
MediaDecoder.java | 264 MediaFormat audioFormat = mMediaExtractor.getTrackFormat(mAudioTrackIndex); 265 mAudioTrackDecoder = new AudioTrackDecoder(mAudioTrackIndex, audioFormat, this);
|
/frameworks/base/media/jni/mediaeditor/ |
VideoEditorClasses.h | 48 #define AUDIO_FORMAT_CLASS_NAME MANUAL_EDIT_ENGINE_CLASS_NAME"$AudioFormat" 165 jfieldID audioFormat; 206 jfieldID audioFormat; 282 VIDEOEDIT_JAVA_DECLARE_CONSTANT_CLASS(AudioFormat )
|
VideoEditorClasses.cpp | 56 VIDEOEDIT_JAVA_DEFINE_CONSTANTS(AudioFormat) 70 VIDEOEDIT_JAVA_DEFINE_CONSTANT_CLASS(AudioFormat, AUDIO_FORMAT_CLASS_NAME, M4OSA_NULL, M4OSA_NULL) 490 VIDEOEDIT_JAVA_FIELD_INIT("audioFormat", "I"), 521 VIDEOEDIT_JAVA_FIELD_INIT("audioFormat", "I"), 563 VIDEOEDIT_JAVA_FIELD_INIT("audioFormat", "I" ), [all...] |
/cts/tests/tests/media/src/android/media/cts/ |
AudioTrackTest.java | 19 import android.media.AudioFormat; 94 + ", audioFormat=" 98 AudioFormat.ENCODING_PCM_16BIT) + ", mode=" + _inTest_mode); 119 AudioTrack.MODE_STREAM, AudioFormat.CHANNEL_CONFIGURATION_MONO, 120 AudioFormat.ENCODING_PCM_16BIT, AudioTrack.STATE_INITIALIZED); 130 AudioTrack.MODE_STREAM, AudioFormat.CHANNEL_CONFIGURATION_STEREO, 131 AudioFormat.ENCODING_PCM_16BIT, AudioTrack.STATE_INITIALIZED); 141 AudioTrack.MODE_STATIC, AudioFormat.CHANNEL_CONFIGURATION_MONO, 142 AudioFormat.ENCODING_PCM_16BIT, AudioTrack.STATE_NO_STATIC_DATA); 152 AudioTrack.MODE_STATIC, AudioFormat.CHANNEL_CONFIGURATION_STEREO [all...] |
/prebuilts/sdk/14/ |
android.jar | |
/prebuilts/sdk/15/ |
android.jar | |
/prebuilts/sdk/18/ |
android.jar | |
/prebuilts/sdk/19/ |
android.jar | |
/prebuilts/sdk/current/ |
android.jar | |